@@ -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; |
@@ -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 MvcRouter($app)); |
40 | 40 | |
41 | 41 | return $chainRouter; |
@@ -78,7 +78,7 @@ |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | $app->before( |
81 | - function (Request $request) use ($app) { |
|
81 | + function(Request $request) use ($app) { |
|
82 | 82 | if ($app->get(static::BC_FEATURE_FLAG_SSL_SERVICE_PROVIDER) === false) { |
83 | 83 | return null; |
84 | 84 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | return; |
35 | 35 | } |
36 | 36 | |
37 | - $app['url_generator'] = $app->share(function ($app) { |
|
37 | + $app['url_generator'] = $app->share(function($app) { |
|
38 | 38 | $app->flush(); |
39 | 39 | |
40 | 40 | return $app[SprykerApplication::SERVICE_ROUTER]; |