@@ -20,7 +20,6 @@ |
||
20 | 20 | // use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass; |
21 | 21 | use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ControllerArgumentValueResolverPass; // 2 versions of this! |
22 | 22 | use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RoutingResolverPass; |
23 | -use Symfony\Bundle\FrameworkBundle\FrameworkBundle; |
|
24 | 23 | use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; |
25 | 24 | use Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader; |
26 | 25 | use Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher; |
@@ -82,7 +82,7 @@ |
||
82 | 82 | |
83 | 83 | public function registerContainerConfiguration(LoaderInterface $loader) |
84 | 84 | { |
85 | - $loader->load(function (ContainerBuilder $container) use ($loader) { |
|
85 | + $loader->load(function(ContainerBuilder $container) use ($loader) { |
|
86 | 86 | $this->configureContainer($container, $loader); |
87 | 87 | |
88 | 88 | $container->addObjectResource($this); ////////////// TODO understand and consider necessity. |
@@ -25,7 +25,6 @@ |
||
25 | 25 | use Symfony\Component\HttpKernel\Controller\ArgumentResolver\SessionValueResolver; |
26 | 26 | use Symfony\Component\HttpKernel\Controller\ArgumentResolver\VariadicValueResolver; |
27 | 27 | use Symfony\Component\HttpKernel\Controller\ContainerControllerResolver; |
28 | -use Symfony\Component\HttpKernel\Controller\ControllerResolver; |
|
29 | 28 | use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory; |
30 | 29 | use Symfony\Component\HttpKernel\DependencyInjection\ControllerArgumentValueResolverPass; |
31 | 30 | use Symfony\Component\HttpKernel\DependencyInjection\RegisterControllerArgumentLocatorsPass; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ->willReturn($this->returnValue([ |
87 | 87 | '_route' => 'foo', |
88 | 88 | 'name' => 'Fabien', |
89 | - '_controller' => function ($name) { |
|
89 | + '_controller' => function($name) { |
|
90 | 90 | return new Response('Hello '.$name); |
91 | 91 | }, |
92 | 92 | ])) |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | { // from Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait |
208 | 208 | $routes->add( |
209 | 209 | '/', |
210 | - function () { |
|
210 | + function() { |
|
211 | 211 | return new Response('Hello'); |
212 | 212 | }, |
213 | 213 | 'index' |
@@ -209,7 +209,7 @@ |
||
209 | 209 | { // from Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait |
210 | 210 | $routes->add( |
211 | 211 | '/', |
212 | - function () { |
|
212 | + function() { |
|
213 | 213 | return new Response('Hello'); |
214 | 214 | }, |
215 | 215 | 'index' |