protected function callCommand($sCommand, array $aArguments = [], $bInteractive = true, $bSilent = false)
    {
        $oCmd       = $this->getApplication()->find($sCommand);
        $aArguments = array_merge(['command' => $sCommand], $aArguments);
        $oCmdInput  = new ArrayInput($aArguments);

        $oCmdInput->setInteractive($bInteractive);

        if ($bSilent) {
            $oCmdOutput = new NullOutput();
        } else {
            $oCmdOutput = $this->oOutput;
        }

        return $oCmd->run($oCmdInput, $oCmdOutput);
    }
protected function callCommand($sCommand, array $aArguments = [], $bInteractive = true, $bSilent = false)
    {
        $oCmd       = $this->getApplication()->find($sCommand);
        $aArguments = array_merge(['command' => $sCommand], $aArguments);
        $oCmdInput  = new ArrayInput($aArguments);

        $oCmdInput->setInteractive($bInteractive);

        if ($bSilent) {
            $oCmdOutput = new NullOutput();
        } else {
            $oCmdOutput = $this->oOutput;
        }

        return $oCmd->run($oCmdInput, $oCmdOutput);
    }
protected function callCommand ( $ sCommand , array $ aArguments = [ ] , $ bInteractive = true , $ bSilent = false ) { $ oCmd = $ this -> getApplication ( ) -> find ( $ sCommand ) ; $ aArguments = array_merge ( [ 'command' => $ sCommand ] , $ aArguments ) ; $ oCmdInput = new ArrayInput ( $ aArguments ) ; $ oCmdInput -> setInteractive ( $ bInteractive ) ; if ( $ bSilent ) { $ oCmdOutput = new NullOutput ( ) ; } else { $ oCmdOutput = $ this -> oOutput ; } return $ oCmd -> run ( $ oCmdInput , $ oCmdOutput ) ; }
Call another command within the app

@param string $sCommand     The command to execute
@param array  $aArguments   Any arguments to pass to the command
@param bool   $bInteractive Whether the command should be executed interactively
@param bool   $bSilent      Whether the command should be executed silently

@return int
@throws \Exception
Call another command within the app