Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FrameworkBundle] Support use of hyphen in assets package name#28128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
damaya wants to merge2 commits intosymfony:masterfromdamaya:patch-2

Conversation

@damaya
Copy link
Contributor

@damayadamaya commentedAug 3, 2018
edited by chalasr
Loading

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes (Manual tests only)
Fixed tickets#28122
LicenseMIT
Doc PRn/a

According to issuesymfony/symfony-docs#10442, we tested in a demo bundle, for example in src/AppBundle/Resources/config/config.yml a package using hyphens: app-client-frontend, and withouth the patch it fails because the package is not recognized. With the patch, it works as expected.

framework:assets:packages:app-client-frontend:version:"%env(FRONTEND_VERSION)%"version_format:'%%2$s/dist/%%1$s'base_urls:                  -"%env(FRONTEND_URL)%"

Support for using hyphens on yaml config for packages names, according to issuesymfony#28122 (comment)
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

can you please enhance the commit message, and update the PR description according to the required template (filled in)?
seehttps://github.com/symfony/symfony/blob/master/.github/PULL_REQUEST_TEMPLATE.md

->fixXmlConfig('package')
->children()
->arrayNode('packages')
->arrayNode('packages')->normalizeKeys(false)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

should be put on a separate line

@fabpot
Copy link
Member

Some test should be added as well (example from the related issue would work well here).

damaya reacted with thumbs up emoji

@damaya
Copy link
ContributorAuthor

Sure, sorry the delay in my answer, I'll update the PR with required data.

@fabpot
Copy link
Member

@damaya Will you have time in the coming days/weeks to finish this PR?

damaya reacted with thumbs up emoji

| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes (Manual tests only)| Fixed tickets |symfony#28122| License       | MIT| Doc PR        | n/aAccording to issuesymfony/symfony-docs#10442, we tested in a demo bundle, for example in src/AppBundle/Resources/config/config.yml a package using hyphens: app-client-frontend, and withouth the patch it fails because the package is not recognized. With the patch, it works as expected.```framework:    assets:        packages:            app-client-frontend:                version: "%env(FRONTEND_VERSION)%"                version_format: '%%2$s/dist/%%1$s'                base_urls:                  - "%env(FRONTEND_URL)%"```
Copy link
ContributorAuthor

@damayadamaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes (Manual tests only)
Fixed tickets#28122
LicenseMIT
Doc PRn/a

According to issuesymfony/symfony-docs#10442, we tested in a demo bundle, for example in src/AppBundle/Resources/config/config.yml a package using hyphens: app-client-frontend, and withouth the patch it fails because the package is not recognized. With the patch, it works as expected.

framework:assets:packages:app-client-frontend:version:"%env(FRONTEND_VERSION)%"version_format:'%%2$s/dist/%%1$s'base_urls:                  -"%env(FRONTEND_URL)%"

@damaya
Copy link
ContributorAuthor

damaya commentedOct 10, 2018
edited
Loading

Hi@fabpot, I updated my commit message and use a new line to improve the syntax. I just did manual tests and this patch worked as expected.
Thanks in advance.

@chalasrchalasr changed the titleUpdate Configuration.php[FrameworkBundle] Support use of hyphen in assets package nameOct 10, 2018
@damaya
Copy link
ContributorAuthor

Hi there, the latest commit is ok? do you have any feedback about this? thanks in advance.

@fabpot
Copy link
Member

@damaya I still think that we need to add a test to avoid any regressions in the future. Can you do that or do you need help?

damaya reacted with thumbs up emoji

@damaya
Copy link
ContributorAuthor

damaya commentedOct 12, 2018
edited
Loading

@damaya I still think that we need to add a test to avoid any regressions in the future. Can you do that or do you need help?

Hi@fabpot I would love to do that, could you please give me a reference for how to implement tests for this according to the standard? thanks so much.

@nicolas-grekas
Copy link
Member

Continued in#30007, thank you@damaya

fabpot added a commit that referenced this pull requestJan 29, 2019
…ame (damaya, XuruDragon)This PR was merged into the 3.4 branch.Discussion----------[FrameworkBundle] Support use of hyphen in asset package nameThis PR is a continuity of#28128| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#29122| License       | MIT| Doc PR        | n/aAccording to issuesymfony/symfony-docs#10442, we tested in a demo bundle, for example in src/AppBundle/Resources/config/config.yml a package using hyphens: app-client-frontend, and withouth the patch it fails because the package is not recognized. With the patch, it works as expected.```yamlframework:    assets:        packages:            app-client-frontend:                version: "%env(FRONTEND_VERSION)%"                version_format: '%%2$s/dist/%%1$s'                base_urls:                  - "%env(FRONTEND_URL)%"```Commits-------5c58b6e Add PackageNameTest to ConfigurationTest also add in the changelog the corresponding entry to this PR30b6a4f Support use of hyphen in asset package name
@nicolas-grekasnicolas-grekas modified the milestones:next,4.3Apr 30, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas requested changes

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

5 participants

@damaya@fabpot@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp