Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| UserAdminCommand | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Command; |
| 6 | |
| 7 | use App\Repository\UserRepository; |
| 8 | use Doctrine\ORM\EntityManagerInterface; |
| 9 | use Elkuku\SymfonyUtils\Command\UserAdminBaseCommand; |
| 10 | use Symfony\Component\Console\Attribute\AsCommand; |
| 11 | |
| 12 | #[AsCommand( |
| 13 | name: 'user-admin', |
| 14 | description: 'Administer user accounts', |
| 15 | aliases: ['useradmin', 'admin'] |
| 16 | )] |
| 17 | class UserAdminCommand extends UserAdminBaseCommand |
| 18 | { |
| 19 | public function __construct( |
| 20 | EntityManagerInterface $entityManager, |
| 21 | UserRepository $userRepository, |
| 22 | ) |
| 23 | { |
| 24 | parent::__construct($entityManager, $userRepository); |
| 25 | } |
| 26 | } |