src/web/InlineCoroutineAction.php
/**
     * Runs this action with the specified parameters.
     * This method is mainly invoked by the controller.
     * @param array $params action parameters
     * @return mixed the result of the action
     */
Runs this action with the specified parameters.
This method is mainly invoked by the controller.
@param array $params action parameters
@return mixed the result of the action
Runs this action with the specified parameters . This method is mainly invoked by the controller . @param array $params action parameters @return mixed the result of the action
public function runWithParams($params)
    {
        $args = $this->controller->bindActionParams($this, $params);
        Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
        if (Yii::$app->requestedParams === null) {
            Yii::$app->requestedParams = $args;
        }
        return Swoole\Coroutine::call_user_func_array([$this->controller, $this->actionMethod], $args);
    }
public function runWithParams ( $ params ) { $ args = $ this -> controller -> bindActionParams ( $ this , $ params ) ; Yii :: trace ( 'Running action: ' . get_class ( $ this -> controller ) . '::' . $ this -> actionMethod . '()' , __METHOD__ ) ; if ( Yii :: $ app -> requestedParams === null ) { Yii :: $ app -> requestedParams = $ args ; } return Swoole \ Coroutine :: call_user_func_array ( [ $ this -> controller , $ this -> actionMethod ] , $ args ) ; }
Runs this action with the specified parameters.
Runs this action with the specified parameters .