protected function executeDecorators($command)
    {
        foreach ($this->decorators as $className)
        {
            $instance = $this->app->make($className);

            if ( ! $instance instanceof CommandBus)
            {
                $message = 'The class to decorate must be an implementation of Laracasts\Commander\CommandBus';

                throw new InvalidArgumentException($message);
            }

            $instance->execute($command);
        }
    }
protected function executeDecorators($command)
    {
        foreach ($this->decorators as $className)
        {
            $instance = $this->app->make($className);

            if ( ! $instance instanceof CommandBus)
            {
                $message = 'The class to decorate must be an implementation of Laracasts\Commander\CommandBus';

                throw new InvalidArgumentException($message);
            }

            $instance->execute($command);
        }
    }
protected function executeDecorators ( $ command ) { foreach ( $ this -> decorators as $ className ) { $ instance = $ this -> app -> make ( $ className ) ; if ( ! $ instance instanceof CommandBus ) { $ message = 'The class to decorate must be an implementation of Laracasts\Commander\CommandBus' ; throw new InvalidArgumentException ( $ message ) ; } $ instance -> execute ( $ command ) ; } }
Execute all registered decorators

@param  object $command
@return null
Execute all registered decorators