Skip to content

Commit

Permalink
[FrameworkBundle] removed Container dependency for RequestListener
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 14, 2010
1 parent 509bfb8 commit 42c2aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/Symfony/Bundle/FrameworkBundle/RequestListener.php
Expand Up @@ -3,7 +3,6 @@
namespace Symfony\Bundle\FrameworkBundle;

use Symfony\Components\HttpKernel\LoggerInterface;
use Symfony\Components\DependencyInjection\ContainerInterface;
use Symfony\Components\EventDispatcher\EventDispatcher;
use Symfony\Components\EventDispatcher\Event;
use Symfony\Components\Routing\RouterInterface;
Expand All @@ -25,21 +24,19 @@
*/
class RequestListener
{
protected $container;
protected $router;
protected $logger;

public function __construct(ContainerInterface $container, RouterInterface $router, LoggerInterface $logger = null)
public function __construct(RouterInterface $router, LoggerInterface $logger = null)
{
$this->container = $container;
$this->router = $router;
$this->logger = $logger;
}

/**
* Registers a core.request listener.
*
* @param Symfony\Components\EventDispatcher\EventDispatcher $dispatcher An EventDispatcher instance
* @param EventDispatcher $dispatcher An EventDispatcher instance
*/
public function register(EventDispatcher $dispatcher)
{
Expand Down
Expand Up @@ -29,7 +29,6 @@

<service id="request_listener" class="%request_listener.class%">
<tag name="kernel.listener" />
<argument type="service" id="service_container" />
<argument type="service" id="router" />
<argument type="service" id="logger" on-invalid="ignore" />
</service>
Expand Down

0 comments on commit 42c2aff

Please sign in to comment.