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

Error in security.access.decision_manager service in Symfony 3.1 #518

Closed
mkrause opened this issue May 30, 2016 · 4 comments
Closed

Error in security.access.decision_manager service in Symfony 3.1 #518

mkrause opened this issue May 30, 2016 · 4 comments

Comments

@mkrause
Copy link

mkrause commented May 30, 2016

Under JMSSerializerBundle 1.1, I get the following exception when upgrading to Symfony 3.1:

[Symfony\Component\Debug\Exception\ContextErrorException]
Catchable Fatal Error: Argument 1 passed to Symfony\Component\Security\Core
\Authorization\DebugAccessDecisionManager::__construct() must be an instance of 
Symfony\Component\Security\Core\Authorization\AccessDecisionManager, instance of 
JMS\SecurityExtraBundle\Security\Authorization\RememberingAccessDecisionManager given

It looks like Symfony 3.1 introduced a new class DebugAccessDecisionManager, which wraps around the AccessDecisionManager instance. This conflicts with the serializer bundle's own RememberingAccessDecisionManager wrapper class.

@mkrause
Copy link
Author

mkrause commented May 30, 2016

On further inspection this looks like it should be fixed in JMSSecurityExtraBundle. May be related to this issue?

@GuilhemN
Copy link

GuilhemN commented Jun 1, 2016

This looks like an error in symfony, i'll submit a patch.

@GuilhemN
Copy link

GuilhemN commented Jun 1, 2016

I opened symfony/symfony#18938

@mkrause
Copy link
Author

mkrause commented Jun 2, 2016

I'll close this, in favor of schmittjoh/JMSSecurityExtraBundle#207

@mkrause mkrause closed this as completed Jun 2, 2016
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

No branches or pull requests

2 participants