public function testAction(TestEventDispatcherService $dispatcher) { $data = array(); $testEvent = new TestEvent($data); $dispatcher->dispatch(TestEvents::SAVE_ACTION, $testEvent); }
protected function addSubscriber() { $subscriber = new TestEventSubscriber(); $this->dispatcherObject->addSubscriber($subscriber); }