[FrameworkBundle] removed Container dependency for RequestListener

This commit is contained in:
Fabien Potencier 2010-08-14 22:44:00 +02:00
parent 509bfb8940
commit 42c2affbb1
2 changed files with 2 additions and 6 deletions

View File

@ -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;
@ -25,13 +24,11 @@ use Symfony\Components\HttpKernel\HttpKernelInterface;
*/
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;
}
@ -39,7 +36,7 @@ class RequestListener
/**
* 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)
{

View File

@ -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>