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

Remove data-collector when no twig or profiler present #134

Merged
merged 2 commits into from
May 4, 2023

Conversation

brzuchal
Copy link
Contributor

@brzuchal brzuchal commented Mar 20, 2023

Laravel version: 8.x
Symfony version: 5.0

Closes #130

@brzuchal brzuchal marked this pull request as ready for review March 20, 2023 14:33
@brzuchal
Copy link
Contributor Author

@wouterj I essentially use this patch from a month now without any issues. Can we get that merged?

@wouterj wouterj force-pushed the remove-data-collector branch from c9c3da6 to 6d2cfd0 Compare May 4, 2023 17:08
@wouterj wouterj merged commit d17ccbe into wouterj:2.x May 4, 2023
@wouterj
Copy link
Owner

wouterj commented May 4, 2023

Thank you @brzuchal. I've added a commit to your PR to add a test and change the if condition, as DI extensions get a clean container and not the real container - so the $container->has() check always returns false.

This new condition should be safe now, if I read the issue correctly. Can you give this a spin? If it works, I'll release 2.3.1 with this fix :)

@brzuchal
Copy link
Contributor Author

brzuchal commented May 4, 2023

Thanks @wouterj I can test it next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning in service wiring because of missing "Twig_Environment"
2 participants