Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Dynamic bundle assets#31975
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
Dynamic bundle assets#31975
Uh oh!
There was an error while loading.Please reload this page.
Conversation
derrabus commentedJun 10, 2019
This PR should target the 4.4 branch. If you only add a |
Uh oh!
There was an error while loading.Please reload this page.
garak commentedJun 11, 2019
So, should I close this PR and open another one on 4.4? |
fabpot commentedJun 20, 2019
@garak No, you change the target of this PR without creating a new one. |
garak commentedJun 20, 2019
@fabpot I just tried to change target to 4.4. and a bunch of stuff popped up. |
fabpot commentedJun 20, 2019
@garak rebase your PR locally on 4.4 and push again, that should resolve the mess. |
garak commentedJun 20, 2019
I rebased upon 4.4. Hope everything is fine |
src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
garak commentedJun 29, 2019
I still see "Status: Needs Work" label. Should I do something else? |
Uh oh!
There was an error while loading.Please reload this page.
garak commentedJul 8, 2019
Friendly reminder: did needed work, do I need to do some more? |
fabpot left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Having some tests for this new feature would be nice as well.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
garak commentedJul 8, 2019
I addressed all notes from@fabpot, I guess. Some portions of code are not shown as modified, but they are, actually. |
fabpot commentedJul 9, 2019
Thank you@garak. |
This PR was squashed before being merged into the 4.4 branch (closes#31975).Discussion----------Dynamic bundle assets| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | yes| BC breaks? | no (new method in interface as annotation)| Deprecations? | no| Tests pass? | yes| Fixed tickets |#29213| License | MIT| Doc PR | none (yet)Everything is explained in linked issueCommits-------c16fcc9 Dynamic bundle assets
…ereguiluz)This PR was squashed before being merged into the 4.4 branch (closes#32452).Discussion----------[Bundles] Rename getPublicPath() as getPublicDir()| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets | -| License | MIT| Doc PR | I'll add this if approvedWhile documenting#31975 (seesymfony/symfony-docs#11930) I realized that the `getPublicPath()` method name is not consistent with the rest of Symfony.In Symfony, "path" is usually associated to routes and we use "dir" for things similar to this:* `getCacheDir()` and `getLogdir()` to override Symfony structure (https://symfony.com/doc/current/configuration/override_dir_structure.html)* `binDir`, `configDir`, `srcDir`, `varDir`, `publicDir` in Symfony Flex recipes (https://github.com/symfony/recipes) to override the dir structureSo, this PR proposes to rename `getPublicPath()` as `getPublicDir()`Commits-------4ab2f99 [Bundles] Rename getPublicPath() as getPublicDir()
| publicfunctiongetPublicPath():string | ||
| { | ||
| return'Resources/public'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
IMO that should return the absolute dir to be consistent with getLogDir etc,
| return$this->getProjectDir().'/var/log'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@Tobion here we're not in the project context, but in the bundle one. Anyway, bundle always returned such path, this is not changing anything
…on for bundle directories (yceruto)This PR was squashed before being merged into the 4.4 branch (closes #32845).Discussion----------[HttpKernel][FrameworkBundle] Add alternative convention for bundle directories| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |symfony/symfony#32453| License | MIT| Doc PR | TODOWe already know that bundles must be compatible with many Symfony's versions, so it is very likely that current bundles won't be able to use this feature soon, unless they create symbolic links to support both structures.The point is that this is already happening, so in the future when our bundles stop to support <=4.3 then you'll be sure to change the current directory structure.We have recently added the `getPublicDir()` method insymfony/symfony#31975, here I'm removing it in favor of hardcoding a new convention.I've added some functional tests in which I've changed everything to this structure:```-- ModernBundle |-- config/ |-- public/ |-- src/ |-- ModernBundle.php |-- templates/ |-- translations/```WDYT?Commits-------6996e1cbe2 [HttpKernel][FrameworkBundle] Add alternative convention for bundle directories
…on for bundle directories (yceruto)This PR was squashed before being merged into the 4.4 branch (closes#32845).Discussion----------[HttpKernel][FrameworkBundle] Add alternative convention for bundle directories| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#32453| License | MIT| Doc PR | TODOWe already know that bundles must be compatible with many Symfony's versions, so it is very likely that current bundles won't be able to use this feature soon, unless they create symbolic links to support both structures.The point is that this is already happening, so in the future when our bundles stop to support <=4.3 then you'll be sure to change the current directory structure.We have recently added the `getPublicDir()` method in#31975, here I'm removing it in favor of hardcoding a new convention.I've added some functional tests in which I've changed everything to this structure:```-- ModernBundle |-- config/ |-- public/ |-- src/ |-- ModernBundle.php |-- templates/ |-- translations/```WDYT?Commits-------6996e1c [HttpKernel][FrameworkBundle] Add alternative convention for bundle directories
…on for bundle directories (yceruto)This PR was squashed before being merged into the 4.4 branch (closes #32845).Discussion----------[HttpKernel][FrameworkBundle] Add alternative convention for bundle directories| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |symfony/symfony#32453| License | MIT| Doc PR | TODOWe already know that bundles must be compatible with many Symfony's versions, so it is very likely that current bundles won't be able to use this feature soon, unless they create symbolic links to support both structures.The point is that this is already happening, so in the future when our bundles stop to support <=4.3 then you'll be sure to change the current directory structure.We have recently added the `getPublicDir()` method insymfony/symfony#31975, here I'm removing it in favor of hardcoding a new convention.I've added some functional tests in which I've changed everything to this structure:```-- ModernBundle |-- config/ |-- public/ |-- src/ |-- ModernBundle.php |-- templates/ |-- translations/```WDYT?Commits-------6996e1cbe2 [HttpKernel][FrameworkBundle] Add alternative convention for bundle directories
…on for bundle directories (yceruto)This PR was squashed before being merged into the 4.4 branch (closes #32845).Discussion----------[HttpKernel][FrameworkBundle] Add alternative convention for bundle directories| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |symfony/symfony#32453| License | MIT| Doc PR | TODOWe already know that bundles must be compatible with many Symfony's versions, so it is very likely that current bundles won't be able to use this feature soon, unless they create symbolic links to support both structures.The point is that this is already happening, so in the future when our bundles stop to support <=4.3 then you'll be sure to change the current directory structure.We have recently added the `getPublicDir()` method insymfony/symfony#31975, here I'm removing it in favor of hardcoding a new convention.I've added some functional tests in which I've changed everything to this structure:```-- ModernBundle |-- config/ |-- public/ |-- src/ |-- ModernBundle.php |-- templates/ |-- translations/```WDYT?Commits-------6996e1cbe2 [HttpKernel][FrameworkBundle] Add alternative convention for bundle directories
…on for bundle directories (yceruto)This PR was squashed before being merged into the 4.4 branch (closes #32845).Discussion----------[HttpKernel][FrameworkBundle] Add alternative convention for bundle directories| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |symfony/symfony#32453| License | MIT| Doc PR | TODOWe already know that bundles must be compatible with many Symfony's versions, so it is very likely that current bundles won't be able to use this feature soon, unless they create symbolic links to support both structures.The point is that this is already happening, so in the future when our bundles stop to support <=4.3 then you'll be sure to change the current directory structure.We have recently added the `getPublicDir()` method insymfony/symfony#31975, here I'm removing it in favor of hardcoding a new convention.I've added some functional tests in which I've changed everything to this structure:```-- ModernBundle |-- config/ |-- public/ |-- src/ |-- ModernBundle.php |-- templates/ |-- translations/```WDYT?Commits-------6996e1c [HttpKernel][FrameworkBundle] Add alternative convention for bundle directories
Uh oh!
There was an error while loading.Please reload this page.
Everything is explained in linked issue