File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44declare (strict_types=1 );
55
66use Core \App \Event \TablePrefixEventListener ;
7+ use Doctrine \ORM \EntityManager ;
78use Doctrine \ORM \Events ;
89use Doctrine \ORM \Tools \Console \ConsoleRunner ;
910use Doctrine \ORM \Tools \Console \EntityManagerProvider \SingleManagerProvider ;
1011use Dot \DataFixtures \Command \ExecuteFixturesCommand ;
1112use Dot \DataFixtures \Command \ListFixturesCommand ;
12- use Doctrine \ORM \EntityManager ;
1313
1414require_once 'vendor/autoload.php ' ;
1515
16- $ container = require 'config/container.php ' ;
16+ $ container = require 'config/container.php ' ;
1717
1818$ entityManager = $ container ->get (EntityManager::class);
1919$ entityManager ->getEventManager ()
2020 ->addEventListener (Events::loadClassMetadata, $ container ->get (TablePrefixEventListener::class));
2121
2222$ commands = [
23- $ container ->get (ExecuteFixturesCommand::class),
24- $ container ->get (ListFixturesCommand::class),
23+ $ container ->get (ExecuteFixturesCommand::class),
24+ $ container ->get (ListFixturesCommand::class),
2525];
2626
27- ConsoleRunner::run (
28- new SingleManagerProvider ($ entityManager ),
29- $ commands
30- );
27+ ConsoleRunner::run (new SingleManagerProvider ($ entityManager ), $ commands );
Original file line number Diff line number Diff line change 4949 }
5050 },
5151 "require" : {
52- "php" : " ~8.2.0 || ~8.3.0" ,
52+ "php" : " ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0 " ,
5353 "ext-gd" : " *" ,
5454 "ext-json" : " *" ,
5555 "dotkernel/dot-cache" : " ^4.3" ,
7777 "mezzio/mezzio-problem-details" : " ^1.15.0" ,
7878 "ramsey/uuid" : " ^4.5.0" ,
7979 "ramsey/uuid-doctrine" : " ^2.1.0" ,
80- "roave/psr-container-doctrine" : " ^5.2.2" ,
80+ "roave/psr-container-doctrine" : " ^5.2.2 || ^6.0.0 " ,
8181 "symfony/filesystem" : " ^7.2.0" ,
8282 "zircote/swagger-php" : " ^5.0.7"
8383 },
Original file line number Diff line number Diff line change 1212 'version ' => '1.0.0 ' ,
1313 'name ' => 'Dotkernel CLI ' ,
1414 'commands ' => [
15- RouteListCommand::getDefaultName () => RouteListCommand::class,
16- AdminCreateCommand::getDefaultName () => AdminCreateCommand::class,
17- TokenGenerateCommand::getDefaultName () => TokenGenerateCommand::class,
15+ RouteListCommand::$ defaultName => RouteListCommand::class,
16+ AdminCreateCommand::$ defaultName => AdminCreateCommand::class,
17+ TokenGenerateCommand::$ defaultName => TokenGenerateCommand::class,
1818 ],
1919 ],
2020 FileLockerInterface::class => [
Original file line number Diff line number Diff line change 3636class AdminCreateCommand extends Command
3737{
3838 /** @var string $defaultName */
39- protected static $ defaultName = 'admin:create ' ;
39+ public static $ defaultName = 'admin:create ' ;
4040
4141 #[Inject(
4242 AdminServiceInterface::class,
Original file line number Diff line number Diff line change 2525class TokenGenerateCommand extends Command
2626{
2727 /** @var string $defaultName */
28- protected static $ defaultName = 'token:generate ' ;
28+ public static $ defaultName = 'token:generate ' ;
2929 private string $ typeErrorReporting = 'error-reporting ' ;
3030
3131 #[Inject(
Original file line number Diff line number Diff line change 3131class RouteListCommand extends Command
3232{
3333 /** @var string $defaultName */
34- protected static $ defaultName = 'route:list ' ;
34+ public static $ defaultName = 'route:list ' ;
3535
3636 #[Inject(
3737 Application::class,
Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ public function handle(ServerRequestInterface $request): ResponseInterface
116116 }
117117
118118 /**
119- * @param ReflectionClass<RequestHandlerInterface> $reflectionClass
119+ * @template T of RequestHandlerInterface
120+ * @param ReflectionClass<T> $reflectionClass
120121 * @return array<int, mixed>
121122 */
122123 private function getAttributes (ReflectionClass $ reflectionClass ): array
You can’t perform that action at this time.
0 commit comments