public function getHandlerForCommand($commandName)
    {
        $command     = str_replace($this->commandNamespace, '', $commandName);
        $handlerName = $this->handlerNamespace.'\\'.trim($command, '\\').'Handler';

        if (!class_exists($handlerName)) {
            throw MissingHandlerException::forCommand($commandName);
        }

        $handler = $this->container->make($handlerName);

        return $handler;
    }
public function getHandlerForCommand($commandName)
    {
        $command     = str_replace($this->commandNamespace, '', $commandName);
        $handlerName = $this->handlerNamespace.'\\'.trim($command, '\\').'Handler';

        if (!class_exists($handlerName)) {
            throw MissingHandlerException::forCommand($commandName);
        }

        $handler = $this->container->make($handlerName);

        return $handler;
    }
public function getHandlerForCommand ( $ commandName ) { $ command = str_replace ( $ this -> commandNamespace , '' , $ commandName ) ; $ handlerName = $ this -> handlerNamespace . '\\' . trim ( $ command , '\\' ) . 'Handler' ; if ( ! class_exists ( $ handlerName ) ) { throw MissingHandlerException :: forCommand ( $ commandName ) ; } $ handler = $ this -> container -> make ( $ handlerName ) ; return $ handler ; }
Attempts to find the command's respective handler.

@param  string $commandName

@return mixed

@throws MissingHandlerException
Attempts to find the command s respective handler .