models/Route.php
protected function getControllerActions($type, $id, $module, &$result)
    {
        $token = "Create controller with cofig=" . VarDumper::dumpAsString($type) . " and id='$id'";
        Yii::beginProfile($token, __METHOD__);
        try {
            /* @var $controller \yii\base\Controller */
            $controller = Yii::createObject($type, [$id, $module]);
            $this->getActionRoutes($controller, $result);
            $all = "/{$controller->uniqueId}/*";
            $result[$all] = $all;
        } catch (\Exception $exc) {
            Yii::error($exc->getMessage(), __METHOD__);
        }
        Yii::endProfile($token, __METHOD__);
    }
protected function getControllerActions($type, $id, $module, &$result)
    {
        $token = "Create controller with cofig=" . VarDumper::dumpAsString($type) . " and id='$id'";
        Yii::beginProfile($token, __METHOD__);
        try {
            /* @var $controller \yii\base\Controller */
            $controller = Yii::createObject($type, [$id, $module]);
            $this->getActionRoutes($controller, $result);
            $all = "/{$controller->uniqueId}/*";
            $result[$all] = $all;
        } catch (\Exception $exc) {
            Yii::error($exc->getMessage(), __METHOD__);
        }
        Yii::endProfile($token, __METHOD__);
    }
protected function getControllerActions ( $ type , $ id , $ module , & $ result ) { $ token = "Create controller with cofig=" . VarDumper :: dumpAsString ( $ type ) . " and id='$id'" ; Yii :: beginProfile ( $ token , __METHOD__ ) ; try { /* @var $controller \yii\base\Controller */ $ controller = Yii :: createObject ( $ type , [ $ id , $ module ] ) ; $ this -> getActionRoutes ( $ controller , $ result ) ; $ all = "/{$controller->uniqueId}/*" ; $ result [ $ all ] = $ all ; } catch ( \ Exception $ exc ) { Yii :: error ( $ exc -> getMessage ( ) , __METHOD__ ) ; } Yii :: endProfile ( $ token , __METHOD__ ) ; }
Get list action of controller
@param mixed $type
@param string $id
@param \yii\base\Module $module
@param string $result
Get list action of controller