getEventDispatcher() public method

Returns the event dispatcher used to dispatch the console events.
public getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
return Symfony\Component\EventDispatcher\EventDispatcherInterface The event dispatcher.
 public function testSetEventDispatcher()
 {
     $dispatcher = new EventDispatcher();
     $this->config->setEventDispatcher($dispatcher);
     $this->assertSame($dispatcher, $this->config->getEventDispatcher());
 }