[Console] fix typehint for Application::setDispatcher

This commit is contained in:
Tobias Schultze 2013-05-28 21:36:15 +02:00
parent 395ec400d1
commit 176a3d435e

View File

@ -33,7 +33,7 @@ use Symfony\Component\Console\Helper\TableHelper;
use Symfony\Component\Console\Event\ConsoleCommandEvent; use Symfony\Component\Console\Event\ConsoleCommandEvent;
use Symfony\Component\Console\Event\ConsoleForExceptionEvent; use Symfony\Component\Console\Event\ConsoleForExceptionEvent;
use Symfony\Component\Console\Event\ConsoleTerminateEvent; use Symfony\Component\Console\Event\ConsoleTerminateEvent;
use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
/** /**
* An Application is the container for a collection of commands. * An Application is the container for a collection of commands.
@ -88,7 +88,7 @@ class Application
} }
} }
public function setDispatcher(EventDispatcher $dispatcher) public function setDispatcher(EventDispatcherInterface $dispatcher)
{ {
$this->dispatcher = $dispatcher; $this->dispatcher = $dispatcher;
} }