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 security-bundle regression error #32342

Closed
bakome opened this issue Jul 3, 2019 · 5 comments
Closed

Symfony security-bundle regression error #32342

bakome opened this issue Jul 3, 2019 · 5 comments

Comments

@bakome
Copy link

bakome commented Jul 3, 2019

Symfony version(s) affected: 4..

Description
I have issue with latest update for symfony/security-bundle and symfony/config. Error message is:

ReflectionException: Class Symfony\Component\Templating\Helper\Helper
not found in /usr/share/nginx/html/vendor/symfony/security-
bundle/Templating/Helper/LogoutUrlHelper.php:23

This works well before last update and i see there was issue last year similar to this with explanation that templating is required, but i thath package is not in composer.json required packages of security-bundle.

How to reproduce
Update security-bundle to latest 4.2.3 version

Possible Solution

Additional context

@zspine
Copy link

zspine commented Jul 3, 2019

symfony/security-bundle: (v4.2.10)

I am having the same problem with the latest update. As a temporary solution I have installed the templating component manually with composer.

composer require symfony/templating

@bakome
Copy link
Author

bakome commented Jul 3, 2019

@zspine thanks for temporary solution. Maybe this package need to be in require section of security-bundle not in require-dev, because i am installing dependencies without dev packages for production.

@javiereguiluz javiereguiluz changed the title Symfony security-bundle regression error Class Symfony\Component\Templating\Helper\Helper not found in /usr/share/nginx/html/vendor/symfony/security-bundle/Templating/Helper/LogoutUrlHelper.php:23 Symfony security-bundle regression error Jul 4, 2019
@xabbuh
Copy link
Member

xabbuh commented Jul 4, 2019

Can you both confirm that #32379 fixes the issue?

@bakome
Copy link
Author

bakome commented Jul 5, 2019

Works for me!

@xabbuh
Copy link
Member

xabbuh commented Jul 5, 2019

Thanks for the confirmation. 👍

@chalasr chalasr closed this as completed Jul 5, 2019
chalasr pushed a commit that referenced this issue Jul 5, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

[SecurityBundle] conditionally register services

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32342
| License       | MIT
| Doc PR        |

Commits
-------

8fbcdf2 conditionally register services
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants