Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[FrameworkBundle] [TwigBundle] Move the hinclude key away from templating#30959
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
[FrameworkBundle] [TwigBundle] Move the hinclude key away from templating#30959
Uh oh!
There was an error while loading.Please reload this page.
Conversation
c045b3d toe6dfc08Comparesrc/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.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.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
e6dfc08 to2957e52CompareSimperfit commentedApr 7, 2019
2957e52 to98c6732Comparesrc/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
98c6732 tof53edb0Comparesrc/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Simperfit commentedApr 7, 2019 via email
It does work properly since I didnt removed anything I just added thedeprecationLe dim. 7 avr. 2019 à 18:53, Fabien Potencier <notifications@github.com> aécrit : … ***@***.**** commented on this pull request. ------------------------------ In src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php <#30959 (comment)>: > @@ -487,6 +487,7 @@ private function registerFragmentsConfiguration(array $config, ContainerBuilder return; } + $container->setParameter('fragment.renderer.hinclude.global_template', $config['hinclude_default_template']); Does it work even when providing the value via the old key and not via the new one? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#30959 (review)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADSq8hOp9EZCqrgg-gnArTKIx-YNs2wCks5veiJvgaJpZM4cgo9l> . |
Simperfit commentedApr 7, 2019 via email
Ooow I understand, I will write one !Le dim. 7 avr. 2019 à 21:56, Robin Chalas <notifications@github.com> aécrit : … ***@***.**** commented on this pull request. ------------------------------ In src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php <#30959 (comment)>: > @@ -487,6 +487,7 @@ private function registerFragmentsConfiguration(array $config, ContainerBuilder return; } + $container->setParameter('fragment.renderer.hinclude.global_template', $config['hinclude_default_template']);@Simperfit <https://github.com/Simperfit> You are setting a parameter with no prior existence/emptiness check at 2 different places so only one can win (and potentially not the expected one). We need a test I guess :) — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#30959 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADSq8gQ9gFaNNDHFMwT6HHFKttPRNSDgks5vek1egaJpZM4cgo9l> . |
f53edb0 to0a0d913CompareSimperfit commentedApr 8, 2019
I've added an existence check to not replace if it has been already setted. |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
3c89d11 to2ee4331CompareSimperfit commentedApr 8, 2019
@fabpot Should be ok now, I've added a test. |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
2ee4331 to400ed9aCompareSimperfit commentedApr 8, 2019
@fabpot PR ready, CI failure not related to this PR. |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
400ed9a to7fb7329CompareSimperfit commentedApr 8, 2019
done@fabpot |
7fb7329 to2dfcc51Comparesrc/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
2dfcc51 to9b605e9CompareSimperfit commentedApr 8, 2019
done@fabpot |
9b605e9 to4f39339Comparefabpot commentedApr 8, 2019
Thank you@Simperfit. |
…way from templating (Simperfit)This PR was squashed before being merged into the 4.3-dev branch (closes#30959).Discussion----------[FrameworkBundle] [TwigBundle] Move the hinclude key away from templating| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | yes <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets |#30874 <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | to do when pr is validated.<!--Write a short README entry for your feature/bugfix here (replace this comment block.)This will help people understand your PR and can be used as a start of the Doc PR.Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch.-->Maybe I shouldn't move directly the config key from templating to the other, but since the templating component has been deprecated we may change this directly without deprecating that key alone, WDYT ?Commits-------4f39339 [FrameworkBundle] [TwigBundle] Move the hinclude key away from templating
Maybe I shouldn't move directly the config key from templating to the other, but since the templating component has been deprecated we may change this directly without deprecating that key alone, WDYT ?