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

Symfony 2.8 compatability issue #158

Closed
jenkoian opened this issue Aug 8, 2017 · 1 comment
Closed

Symfony 2.8 compatability issue #158

jenkoian opened this issue Aug 8, 2017 · 1 comment
Labels

Comments

@jenkoian
Copy link
Contributor

jenkoian commented Aug 8, 2017

Symfony 2.8 doesn't support a maxDepth on profiler_dump() so the profiler fails on Symfony 2.8 (the max depth got added in 3.2 https://github.com/symfony/symfony/blob/3.2/src/Symfony/Bundle/WebProfilerBundle/Twig/WebProfilerExtension.php#L82). We call this from here btw.

So think we either need to omit the max depth option for now, or remove 2.8 support (https://github.com/php-enqueue/enqueue-bundle/blob/master/composer.json#L15). Happy to submit a PR if you let me know which approach you'd prefer.

Personally I think it'd be a shame to lose 2.8 support over such a minor thing so would opt for either removing the max depth option or if there is some way of detecting symfony version from twig switching the function call to include it conditionally.

@makasim makasim added the bug label Aug 8, 2017
@makasim
Copy link
Member

makasim commented Aug 8, 2017

Let's get rid of maxDepth option for now.

jenkoian pushed a commit to jenkoian/enqueue-dev that referenced this issue Aug 9, 2017
MaxDepth was introduced in Symfony 3.2 so to maintain 2.8 compatibility
we should remove this option.

Fixes: php-enqueue#158
ASKozienko pushed a commit that referenced this issue Nov 2, 2018
MaxDepth was introduced in Symfony 3.2 so to maintain 2.8 compatibility
we should remove this option.

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

No branches or pull requests

2 participants