Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebProfilerBundle] Require symfony/twig-bundle #34381

Merged
merged 1 commit into from Nov 15, 2019

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Nov 14, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Starting from a fresh 3.4 I did composer require symfony/web-profiler-bundle --dev but it fails on post install cache clear because

needs the twig service that is declared in the TwigBundle.

symfony/twig-bundle is already a hard depency of the WebProfilerBundle on 4.3+ (cf cac37ca).

@fabpot
Copy link
Member

fabpot commented Nov 14, 2019

It can break Silex. I know, it's not maintained anymore, but that's just an example.
Why is it broken now in 3.4? Anything we should revert instead?

@yceruto
Copy link
Member

yceruto commented Nov 14, 2019

Why is it broken now in 3.4? Anything we should revert instead?

The twig service dependency is there from the begining. Looks like it never worked without TwigBundle installed.

@fancyweb
Copy link
Contributor Author

fancyweb commented Nov 14, 2019

It can break Silex.

silexphp/Silex-WebProfiler requires "symfony/twig-bundle": "^2.8|^3.0" what is the conflict with this? 🤔

@fabpot
Copy link
Member

fabpot commented Nov 15, 2019

Sorry, my comment is not on the right PR :) It should have been on #34389

@fabpot
Copy link
Member

fabpot commented Nov 15, 2019

Thank you @fancyweb.

fabpot added a commit that referenced this pull request Nov 15, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

[WebProfilerBundle] Require symfony/twig-bundle

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Starting from a fresh 3.4 I did `composer require symfony/web-profiler-bundle --dev` but it fails on post install cache clear because https://github.com/symfony/symfony/blob/8a68d2d358ae7db406f72711c24d5c8f687cf7b6/src/Symfony/Bundle/WebProfilerBundle/Resources/config/profiler.xml#L13 needs the `twig` service that is declared in the `TwigBundle`.

`symfony/twig-bundle` is already a hard depency of the `WebProfilerBundle` on 4.3+ (cf cac37ca).

Commits
-------

78dad79 [WebProfilerBundle] Require symfony/twig-bundle
@fabpot fabpot merged commit 78dad79 into symfony:3.4 Nov 15, 2019
@fancyweb fancyweb deleted the web-profiler-twig-bundle-dep branch November 15, 2019 13:52
This was referenced Nov 17, 2019
This was referenced Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants