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

Dependency on a non-existent service "app.repository.user_repository" #40

Closed
unlikenesses opened this issue Apr 9, 2019 · 1 comment
Labels
invalid This doesn't seem right

Comments

@unlikenesses
Copy link

unlikenesses commented Apr 9, 2019

Using Symfony 4, I'm setting up password grant handling following these suggestions. When I make a call to /token, I get the following error:

The service "App\EventListener\UserResolveListener" has a dependency on a non-existent service "app.repository.user_repository".

which relates to the arguments section in services.yaml:

App\EventListener\UserResolveListener:
    arguments:
        - '@app.repository.user_repository'
@unlikenesses
Copy link
Author

Solution was to simply remove the arguments key from services.yaml.

@spideyfusion spideyfusion added the invalid This doesn't seem right label Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants