public function __construct(SymfonyEventDispatcherInterface $dispatcher = null) { $this->dispatcher = $dispatcher ?: new EventDispatcher(); }