Graphqlbundle: Upgrading from 0.12.5 to 0.13 fails with auto wire error on ExpressionFunction\Security\GetUser

Created on 9 Jan 2020  路  5Comments  路  Source: overblog/GraphQLBundle

| Q | A
| ---------------- | -----
| Bug report? | yes
| Feature request? |no
| BC Break report? | yes
| RFC? | no
| Version/Branch | 0.13

Cannot autowire service "Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\Security\GetUser": argument "$security" of method "__construct()" references class "Symfony\Component\Security\Core
  \Security" but no such service exists

Not sure what I'm doing wrong.

bug

Most helpful comment

This is definitely a bug, security should be optional. I started working on a fix I will submit a PR by tomorrow.

All 5 comments

@ruudk try to install the Security Bundle

composer require symfony/security-bundle

But I don't need Secure Bundle. Maybe the ExpressionLanguage should only register when you have that bundle enabled?

In my project I only have symfony/security-core

This is definitely a bug, security should be optional. I started working on a fix I will submit a PR by tomorrow.

Thanks, now that that is merged we can close this

Was this page helpful?
0 / 5 - 0 ratings