public setEventDispatcher ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | The event dispatcher to use. |
public function setEventDispatcher(EventDispatcherInterface $dispatcher)
{
if ($this->started) {
throw new LogicException('Puli is already started');
}
$this->dispatcher = $dispatcher;
}