EasyAdminPlusBundle icon indicating copy to clipboard operation
EasyAdminPlusBundle copied to clipboard

instalation issue. Attempted to load class "ContainerAwareCommand"

Open nivaschenko opened this issue 5 years ago • 3 comments

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

nivaschenko avatar Apr 20 '20 13:04 nivaschenko

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

laurent-bientz avatar Apr 30 '20 16:04 laurent-bientz

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.

vbourdeix avatar Oct 28 '20 11:10 vbourdeix

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!

laurent-bientz avatar Nov 23 '20 10:11 laurent-bientz