code/command/mixin/mixin.php
public function invokeCommand($command, $attributes = null, $subject = null)
    {
        //Default the subject to the mixer
        $subject = $subject ?: $this->getMixer();

        return $this->getCommandChain()->execute($command, $attributes, $subject);
    }
public function invokeCommand($command, $attributes = null, $subject = null)
    {
        //Default the subject to the mixer
        $subject = $subject ?: $this->getMixer();

        return $this->getCommandChain()->execute($command, $attributes, $subject);
    }
public function invokeCommand ( $ command , $ attributes = null , $ subject = null ) { //Default the subject to the mixer $ subject = $ subject ? : $ this -> getMixer ( ) ; return $ this -> getCommandChain ( ) -> execute ( $ command , $ attributes , $ subject ) ; }
Invoke a command by calling all registered handlers

If a command handler returns the 'break condition' the executing is halted. If no break condition is specified the
the command chain will execute all command handlers, regardless of the handler result returned.

@param  string|CommandInterface  $command    The command name or a CommandInterface object
@param  array|\Traversable       $attributes An associative array or a Traversable object
@param  ObjectInterface          $subject    The command subject
@return mixed|null If a handler breaks, returns the break condition. NULL otherwise.
Invoke a command by calling all registered handlers