@@ -16,7 +16,7 @@ |
||
16 | 16 | (new Dotenv(true))->load('.env'); |
17 | 17 | } |
18 | 18 | |
19 | -(static function () { |
|
19 | +(static function() { |
|
20 | 20 | $container = require './config/container.php'; |
21 | 21 | |
22 | 22 | $application = $container->get(ApplicationInterface::class); |
@@ -13,20 +13,20 @@ |
||
13 | 13 | use Psr\Container\ContainerInterface; |
14 | 14 | |
15 | 15 | return [ |
16 | - ApplicationInterface::class => static function (ContainerInterface $container): ApplicationInterface { |
|
16 | + ApplicationInterface::class => static function(ContainerInterface $container): ApplicationInterface { |
|
17 | 17 | return new Application( |
18 | 18 | $container->get(RouterInterface::class), |
19 | 19 | $container->get(MiddlewareResolverInterface::class), |
20 | 20 | $container->get(MiddlewarePipelineInterface::class) |
21 | 21 | ); |
22 | 22 | }, |
23 | - RouterInterface::class => static function (ContainerInterface $container): RouterInterface { |
|
23 | + RouterInterface::class => static function(ContainerInterface $container): RouterInterface { |
|
24 | 24 | return $container->get(AuraRouterAdapter::class); |
25 | 25 | }, |
26 | - MiddlewareResolverInterface::class => static function (ContainerInterface $container): MiddlewareResolverInterface { |
|
26 | + MiddlewareResolverInterface::class => static function(ContainerInterface $container): MiddlewareResolverInterface { |
|
27 | 27 | return $container->get(FuriousMiddlewareResolver::class); |
28 | 28 | }, |
29 | - MiddlewarePipelineInterface::class => static function (ContainerInterface $container): MiddlewarePipelineInterface { |
|
29 | + MiddlewarePipelineInterface::class => static function(ContainerInterface $container): MiddlewarePipelineInterface { |
|
30 | 30 | return $container->get(BrokerPipelineAdapter::class); |
31 | 31 | } |
32 | 32 | ]; |
@@ -10,13 +10,13 @@ |
||
10 | 10 | use Psr\Container\ContainerInterface; |
11 | 11 | |
12 | 12 | return [ |
13 | - ResponseFactory::class => static function (ContainerInterface $container): ResponseFactory { |
|
13 | + ResponseFactory::class => static function(ContainerInterface $container): ResponseFactory { |
|
14 | 14 | return $container->get(NyholmResponseFactory::class); |
15 | 15 | }, |
16 | - NotFoundHandlerInterface::class => static function (ContainerInterface $container): NotFoundHandlerInterface { |
|
16 | + NotFoundHandlerInterface::class => static function(ContainerInterface $container): NotFoundHandlerInterface { |
|
17 | 17 | return $container->get(NotFoundHandler::class); |
18 | 18 | }, |
19 | - ErrorHandler::class => static function (ContainerInterface $container): ErrorHandler { |
|
19 | + ErrorHandler::class => static function(ContainerInterface $container): ErrorHandler { |
|
20 | 20 | return new ErrorHandler( |
21 | 21 | $container->get(ResponseFactory::class), |
22 | 22 | $container->get('config')['app']['debug'] |
@@ -12,7 +12,7 @@ |
||
12 | 12 | use Psr\Container\ContainerInterface; |
13 | 13 | |
14 | 14 | return [ |
15 | - EntityManagerInterface::class => function (ContainerInterface $container): EntityManagerInterface { |
|
15 | + EntityManagerInterface::class => function(ContainerInterface $container): EntityManagerInterface { |
|
16 | 16 | $settings = $container->get('config')['doctrine']; |
17 | 17 | |
18 | 18 | foreach ($settings['types'] as $name => $class) { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Framework\Http\ApplicationInterface; |
7 | 7 | use Framework\Http\Pipeline\Middleware as FrameworkMiddleware; |
8 | 8 | |
9 | -return static function (ApplicationInterface $app): void { |
|
9 | +return static function(ApplicationInterface $app): void { |
|
10 | 10 | $router = $app->getRouter(); |
11 | 11 | |
12 | 12 | $app->pipe(Middleware\ProfilerMiddleware::class); |
@@ -5,6 +5,6 @@ |
||
5 | 5 | use App\Http\Action; |
6 | 6 | use Framework\Http\ApplicationInterface; |
7 | 7 | |
8 | -return static function (ApplicationInterface $app): void { |
|
8 | +return static function(ApplicationInterface $app): void { |
|
9 | 9 | $app->get('home', '/', Action\HomeAction::class); |
10 | 10 | }; |