Skip to content

Commit

Permalink
[3.0][HttpKernel] remove deprecated functions and classes
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentaubert committed May 16, 2015
1 parent 9b0fc1c commit 61bf6b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/FrameworkExtension.php
Expand Up @@ -142,7 +142,7 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('debug.xml');

$definition = $container->findDefinition('http_kernel');
$definition->replaceArgument(2, new Reference('debug.controller_resolver'));
$definition->replaceArgument(1, new Reference('debug.controller_resolver'));

// replace the regular event_dispatcher service with the debug one
$definition = $container->findDefinition('event_dispatcher');
Expand Down
3 changes: 1 addition & 2 deletions Resources/config/services.xml
Expand Up @@ -9,9 +9,8 @@
<argument type="service" id="service_container" />
</service>

<service id="http_kernel" class="Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel">
<service id="http_kernel" class="Symfony\Component\HttpKernel\HttpKernel">
<argument type="service" id="event_dispatcher" />
<argument type="service" id="service_container" />
<argument type="service" id="controller_resolver" />
<argument type="service" id="request_stack" />
</service>
Expand Down

0 comments on commit 61bf6b4

Please sign in to comment.