@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | protected function provideRouter(ContainerInterface $container): ContainerInterface |
| 58 | 58 | { |
| 59 | - $container->set(static::SERVICE_ROUTER, function () { |
|
| 59 | + $container->set(static::SERVICE_ROUTER, function() { |
|
| 60 | 60 | return $this->getFacade()->getRouter(); |
| 61 | 61 | }); |
| 62 | 62 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | protected function provideControllerResolver(ContainerInterface $container): ContainerInterface |
| 93 | 93 | { |
| 94 | - $container->set(static::SERVICE_CONTROLLER_RESOLVER, function () use ($container) { |
|
| 94 | + $container->set(static::SERVICE_CONTROLLER_RESOLVER, function() use ($container) { |
|
| 95 | 95 | return new ControllerResolver($container); |
| 96 | 96 | }); |
| 97 | 97 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | protected function provideArgumentResolver(ContainerInterface $container): ContainerInterface |
| 107 | 107 | { |
| 108 | - $container->set(static::SERVICE_ARGUMENT_RESOLVER, function () { |
|
| 108 | + $container->set(static::SERVICE_ARGUMENT_RESOLVER, function() { |
|
| 109 | 109 | return new ArgumentResolver(); |
| 110 | 110 | }); |
| 111 | 111 | |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | return [ |
| 82 | - '_controller' => function ($url) { |
|
| 82 | + '_controller' => function($url) { |
|
| 83 | 83 | return new RedirectResponse($url, 301); |
| 84 | 84 | }, |
| 85 | 85 | '_route' => null, |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | protected function provideRouter(ContainerInterface $container): ContainerInterface |
| 59 | 59 | { |
| 60 | - $container->set(static::SERVICE_ROUTER, function () { |
|
| 60 | + $container->set(static::SERVICE_ROUTER, function() { |
|
| 61 | 61 | return $this->getFactory()->createRouter(); |
| 62 | 62 | }); |
| 63 | 63 | |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | protected function provideControllerResolver(ContainerInterface $container): ContainerInterface |
| 94 | 94 | { |
| 95 | - $container->set(static::SERVICE_CONTROLLER_RESOLVER, function () use ($container) { |
|
| 95 | + $container->set(static::SERVICE_CONTROLLER_RESOLVER, function() use ($container) { |
|
| 96 | 96 | return new ControllerResolver($container); |
| 97 | 97 | }); |
| 98 | 98 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | protected function provideArgumentResolver(ContainerInterface $container): ContainerInterface |
| 108 | 108 | { |
| 109 | - $container->set(static::SERVICE_ARGUMENT_RESOLVER, function () { |
|
| 109 | + $container->set(static::SERVICE_ARGUMENT_RESOLVER, function() { |
|
| 110 | 110 | return $this->getFactory()->createArgumentResolver(); |
| 111 | 111 | }); |
| 112 | 112 | |
@@ -273,7 +273,7 @@ |
||
| 273 | 273 | protected function renderView($view, array $parameters = [], ?Response $response = null) |
| 274 | 274 | { |
| 275 | 275 | if ($response instanceof StreamedResponse) { |
| 276 | - $response->setCallback(function () use ($view, $parameters) { |
|
| 276 | + $response->setCallback(function() use ($view, $parameters) { |
|
| 277 | 277 | $this->getTwig()->display($view, $parameters); |
| 278 | 278 | }); |
| 279 | 279 | } else { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function register(Application $app) |
| 32 | 32 | { |
| 33 | - $app['url_matcher'] = $app->share(function () use ($app) { |
|
| 33 | + $app['url_matcher'] = $app->share(function() use ($app) { |
|
| 34 | 34 | /** @var \Symfony\Cmf\Component\Routing\ChainRouter $chainRouter */ |
| 35 | 35 | $chainRouter = $app[SprykerApplication::SERVICE_ROUTER]; |
| 36 | 36 | $chainRouter->setContext($app['request_context']); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | return $chainRouter; |
| 39 | 39 | }); |
| 40 | 40 | |
| 41 | - $app[SprykerApplication::SERVICE_ROUTER] = $app->share(function () { |
|
| 41 | + $app[SprykerApplication::SERVICE_ROUTER] = $app->share(function() { |
|
| 42 | 42 | return new ChainRouter(); |
| 43 | 43 | }); |
| 44 | 44 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function register(Application $app) |
| 29 | 29 | { |
| 30 | - $app['url_generator'] = $app->share(function ($app) { |
|
| 30 | + $app['url_generator'] = $app->share(function($app) { |
|
| 31 | 31 | $app->flush(); |
| 32 | 32 | |
| 33 | 33 | return $app[SprykerApplication::SERVICE_ROUTER]; |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | $chainRouter = $this->container->get(static::SERVICE_ROUTER); |
| 145 | 145 | |
| 146 | 146 | $loader = new ClosureLoader(); |
| 147 | - $resource = function () use ($routeCollection) { |
|
| 147 | + $resource = function() use ($routeCollection) { |
|
| 148 | 148 | return $routeCollection; |
| 149 | 149 | }; |
| 150 | 150 | $router = new Router($loader, $resource); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function register(Application $app) |
| 27 | 27 | { |
| 28 | - $app['url_generator'] = $app->share(function ($app) { |
|
| 28 | + $app['url_generator'] = $app->share(function($app) { |
|
| 29 | 29 | return $app[SprykerApplication::SERVICE_ROUTER]; |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | public function register(Application $app) |
| 36 | 36 | { |
| 37 | 37 | $app[SprykerApplication::SERVICE_ROUTER] = $app->share( |
| 38 | - $app->extend(SprykerApplication::SERVICE_ROUTER, function (ChainRouter $chainRouter) use ($app) { |
|
| 38 | + $app->extend(SprykerApplication::SERVICE_ROUTER, function(ChainRouter $chainRouter) use ($app) { |
|
| 39 | 39 | $chainRouter->add(new SilexRouter($app)); |
| 40 | 40 | |
| 41 | 41 | return $chainRouter; |