public function getCommandLine()
    {
        if (\Yii::$app === null || !$this->getIsConsoleRequest()) {
            return null;
        }

        $params = [];
        if (isset($_SERVER['argv'])) {
            $params = $_SERVER['argv'];
        }
        return implode(' ', $params);
    }
public function getCommandLine()
    {
        if (\Yii::$app === null || !$this->getIsConsoleRequest()) {
            return null;
        }

        $params = [];
        if (isset($_SERVER['argv'])) {
            $params = $_SERVER['argv'];
        }
        return implode(' ', $params);
    }
public function getCommandLine ( ) { if ( \ Yii :: $ app === null || ! $ this -> getIsConsoleRequest ( ) ) { return null ; } $ params = [ ] ; if ( isset ( $ _SERVER [ 'argv' ] ) ) { $ params = $ _SERVER [ 'argv' ] ; } return implode ( ' ' , $ params ) ; }
Returns the command line.
@return string|null command line, `null` if not available.
Returns the command line .