src/Handler/Builder/HandlerBuilder.php
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher)
    {
        if ($this->handler) {
            throw new AlreadyBuildedException('The handler already builded.');
        }

        $this->eventDispatcher = $eventDispatcher;

        return $this;
    }
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher)
    {
        if ($this->handler) {
            throw new AlreadyBuildedException('The handler already builded.');
        }

        $this->eventDispatcher = $eventDispatcher;

        return $this;
    }
public function setEventDispatcher ( EventDispatcherInterface $ eventDispatcher ) { if ( $ this -> handler ) { throw new AlreadyBuildedException ( 'The handler already builded.' ) ; } $ this -> eventDispatcher = $ eventDispatcher ; return $ this ; }
Set event dispatcher

@param EventDispatcherInterface $eventDispatcher

@return HandlerBuilder

@throws AlreadyBuildedException
Set event dispatcher