Set action

@access  public
@param   Controller  $controller
@param   string  $action
961438
public function setAction(Controller $controller, $action = 'execute')
    {
        $this->controller = $controller;
        $this->action = $action;
    }
1041960
public void setAction(String action) {
        try {
            this.action = new URI(action);
        } catch (URISyntaxException e) {
            throw new CitrusRuntimeException("Invalid action uri", e);
        }
    }
1200033
public function setAction($action)
    {
        $this->getTabs()->each(function (TabInterface $tab) use ($action) {
            if ($tab instanceof FormInterface) {
                $tab->setAction($action);
            }
        });

        return $this;
    }
854038
protected function setAssets(Controller $controller)
    {
        $controller->addAssetLibrary('jquery_ui');
        $controller->addAssetLibrary('bootstrap');
        $controller->addAssetLibrary('html5shiv', array('condition' => 'if lt IE 9'));
        $controller->addAssetLibrary('respond', array('condition' => 'if lt IE 9'));
        $controller->addAssetLibrary('font_awesome');

        $controller->setJs(__DIR__ . '/js/common.js');
        $controller->setCss(__DIR__ . '/css/common.css');
    }
801394
public function set($rule, $action)
    {
        $this->rule = $rule;
        $this->action = $action;

        return $this;
    }
821589
public function setAction($action)
    {
        foreach ($this->routes as $route)
            $route->setAction($action);
        return $this;
    }
322901
public function runAction(Action $action)
    {
        $priorAction = $this->_action;
        $this->_action = $action;
        if ($this->beforeAction($action)) {
            if (false === $action->runWithParams($this->getActionParams())) {
                $this->invalidActionParams($action);
            } else {
                $this->afterAction($action);
            }
        }
        $this->_action = $priorAction;
    }
61725
private function invokeAction(Controller $controller, string $actionName): void
    {
        // 获取操作结果
        $actionMethodName = $actionName;
        $actionMethodPrefix = $this->config->getValue('ACTION_METHOD_PREFIX');
        if (! empty($actionMethodPrefix)) {
            $actionMethodName = $actionMethodPrefix . ucfirst($actionMethodName);
        }
        $methods = get_class_methods($controller);
        $actionExists = in_array($actionMethodName, $methods);
        if (! $actionExists) {
            throw new RouteException(get_class($controller) . '中的操作方法' . $actionMethodName . '不存在', 404);
        }
        $actionResult = $controller->invokeAction($actionName, $actionMethodName);
        $this->invokeActionResult($actionResult);
    }
782103
public function setAction($action)
	{
		if (!(is_object($action) && ($action instanceof \Closure)) && ($action === null || $action === '')) {
			throw new InvalidArgumentException('Action should be a Closure or a path to a function');
		}

		$this->action = $action;

		return $this;
	}
78734
public function saveAction(string $controller)
    {
        $this->postAction($controller);
        $this->putAction($controller);
        $this->patchAction($controller);

        return $this;
    }
378484
public function post(string $uri, string $controller, string $action)
    {
        $this->addRoute('POST', $uri, $controller, $action);
    }
839088
protected function configureController(Controller $controller)
    {
        $controller->setInput($this->getInput())
            ->setOutput($this->getOutput())
            ->setCommand($this->getCommand());
        $composer = new Composer();
        $controller->add($composer);
    }
662276
public function setAction($action)
    {
        if (!$this->validateAction($action)) {
            throw new \RuntimeException("$action: is not a valide Action.");
        }

        $this->action = $action;

        return $this;
    }
7297
private function _routeCron($src, $controller, $action) {
        $this->request->name = '-' . $src . '_' . $controller . '_' . $action;
        $this->request->src = $src;
        $this->request->controller = $controller;
        $this->request->action = $action;
        $this->request->auth = new Auth($this->request->src);
        $this->_route = true;
    }
423142
public function options(string $uri, string $controller, string $action)
    {
        $this->addRoute('OPTIONS', $uri, $controller, $action);
    }
93047
public function setController($controller) {
        $controller = Str::studly($controller);
        if('Controller' != substr($controller, -10)) {
            $controller = $controller . 'Controller';
        }

        $this->controller = $controller;

        return $this;
    }
276169
protected function addToActionList($action, $route)
    {
        $controller = $action['controller'];

        if (! isset($this->actionList[$controller])) {
            $this->actionList[$controller] = $route;
        }
    }