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

instalation issue. Attempted to load class "ContainerAwareCommand" #33

Open
nivaschenko opened this issue Apr 20, 2020 · 3 comments
Open

Comments

@nivaschenko
Copy link

I have an error when execute the wandi:easy-admin-plus:user:create admin password
I have the PHP version 7.3.9
This is the error:

$ php bin/console wandi:easy-admin-plus:user:create admin admin
Symfony\Component\ErrorHandler\Error\ClassNotFoundError^ {#456
#message: """
Attempted to load class "ContainerAwareCommand" from namespace "Symfony\Bundle\FrameworkBundle\Command".\n
Did you forget a "use" statement for another namespace?
"""
#code: 0
#file: "C:\test2\OSPanel\domains\football\vendor\wandi\easyadmin-plus-bundle\src\Auth\Command\UserCreateCommand.php"
#line: 14

@laurent-bientz
Copy link
Member

@vbourdeix
Copy link

For others that might stumbled upon this issue, I also did, and the reason is I'm using Symfony 5, which actually removed ContainerAwareCommand, in favor of using dependency injection. This makes this bundle not usable if you want to upgrade to symfony 5.

@laurent-bientz
Copy link
Member

Sorry we're directly using the new version of EasyAdmin with Symfony 5 but if someone wants to submit a PR, any help will be appreciated!

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

3 participants