src/base/Binary.php
public function exec($args = [], $returnExitCode = false)
    {
        $command = $this->prepareCommand($args);
        Yii::info("& $command");
        exec($command, $array, $exitcode);

        return $returnExitCode ? $exitcode : $array;
    }
public function exec($args = [], $returnExitCode = false)
    {
        $command = $this->prepareCommand($args);
        Yii::info("& $command");
        exec($command, $array, $exitcode);

        return $returnExitCode ? $exitcode : $array;
    }
public function exec ( $ args = [ ] , $ returnExitCode = false ) { $ command = $ this -> prepareCommand ( $ args ) ; Yii :: info ( "& $command" ) ; exec ( $ command , $ array , $ exitcode ) ; return $ returnExitCode ? $ exitcode : $ array ; }
Prepares and runs with exec, returns stdout array.
@param string|array $args
@param bool $returnExitCode default false
@return array|int stdout or exit code
Prepares and runs with exec returns stdout array .