src/console/CommonBehavior.php
public function runRequest($query)
    {
        $request = Yii::createObject([
            'class'  => Request::class,
            'params' => is_array($query) ? $query : array_filter(explode(' ', $query)),
        ]);

        return Yii::$app->handleRequest($request);
    }
public function runRequest($query)
    {
        $request = Yii::createObject([
            'class'  => Request::class,
            'params' => is_array($query) ? $query : array_filter(explode(' ', $query)),
        ]);

        return Yii::$app->handleRequest($request);
    }
public function runRequest ( $ query ) { $ request = Yii :: createObject ( [ 'class' => Request :: class , 'params' => is_array ( $ query ) ? $ query : array_filter ( explode ( ' ' , $ query ) ) , ] ) ; return Yii :: $ app -> handleRequest ( $ request ) ; }
Run request.
@param string|array $query
@return Response
Run request .