instalation issue. Attempted to load class "ContainerAwareCommand"
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
hey @nivaschenko, have you installed symfony framework bundle?
Cause the use is here: https://github.com/WandiParis/EasyAdminPlusBundle/blob/master/src/Auth/Command/UserCreateCommand.php#L5
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.
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!