protected function dispatch($eventName, BaseConsoleEvent $e)
    {
        if (!is_null($this->eventDispatcher)) {
            $class = str_replace(
                'Symfony\Component\Console\Event',
                'M6Web\Bundle\StatsdBundle\Event',
                get_class($e)
            );

            $finaleEvent = $class::createFromConsoleEvent(
                $e,
                $this->startTime,
                !is_null($this->startTime) ? microtime(true) - $this->startTime : null
            );

            return $this->eventDispatcher->dispatch($eventName, $finaleEvent);
        } else {
            return false;
        }
    }
protected function dispatch($eventName, BaseConsoleEvent $e)
    {
        if (!is_null($this->eventDispatcher)) {
            $class = str_replace(
                'Symfony\Component\Console\Event',
                'M6Web\Bundle\StatsdBundle\Event',
                get_class($e)
            );

            $finaleEvent = $class::createFromConsoleEvent(
                $e,
                $this->startTime,
                !is_null($this->startTime) ? microtime(true) - $this->startTime : null
            );

            return $this->eventDispatcher->dispatch($eventName, $finaleEvent);
        } else {
            return false;
        }
    }
protected function dispatch ( $ eventName , BaseConsoleEvent $ e ) { if ( ! is_null ( $ this -> eventDispatcher ) ) { $ class = str_replace ( 'Symfony\Component\Console\Event' , 'M6Web\Bundle\StatsdBundle\Event' , get_class ( $ e ) ) ; $ finaleEvent = $ class :: createFromConsoleEvent ( $ e , $ this -> startTime , ! is_null ( $ this -> startTime ) ? microtime ( true ) - $ this -> startTime : null ) ; return $ this -> eventDispatcher -> dispatch ( $ eventName , $ finaleEvent ) ; } else { return false ; } }
Dispatch custom event

@param string           $eventName
@param BaseConsoleEvent $e

@return boolean
Dispatch custom event