original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Execute all registered decorators
  
  @param  object $command
  @return null
docstring_tokens: Execute all registered decorators