public function getProcessor(CommandInterface $command)
    {
        $className = get_class($command);
        try {
            return parent::getProcessor($command);
        } catch (ProcessorNotFoundException $ex) {
            if (!array_key_exists($className, $this->serviceIds)) {
                throw new InvalidArgumentException('No processor registered for given type: '.$className.'.', 500, $ex);
            }
            $this->registerProcessorForCommand($className, $this->container->get($this->serviceIds[$className]));
        }

        return parent::getProcessor($command);
    }
public function getProcessor(CommandInterface $command)
    {
        $className = get_class($command);
        try {
            return parent::getProcessor($command);
        } catch (ProcessorNotFoundException $ex) {
            if (!array_key_exists($className, $this->serviceIds)) {
                throw new InvalidArgumentException('No processor registered for given type: '.$className.'.', 500, $ex);
            }
            $this->registerProcessorForCommand($className, $this->container->get($this->serviceIds[$className]));
        }

        return parent::getProcessor($command);
    }
public function getProcessor ( CommandInterface $ command ) { $ className = get_class ( $ command ) ; try { return parent :: getProcessor ( $ command ) ; } catch ( ProcessorNotFoundException $ ex ) { if ( ! array_key_exists ( $ className , $ this -> serviceIds ) ) { throw new InvalidArgumentException ( 'No processor registered for given type: ' . $ className . '.' , 500 , $ ex ) ; } $ this -> registerProcessorForCommand ( $ className , $ this -> container -> get ( $ this -> serviceIds [ $ className ] ) ) ; } return parent :: getProcessor ( $ command ) ; }
Get processor for class name, if any is registered.

{@inheritdoc}
Get processor for class name if any is registered .