FluxBB\Server\Server::resolveAction PHP Method

resolveAction() protected method

Resolve an action instance by name.
protected resolveAction ( $name ) : Action
$name
return FluxBB\Core\Action
    protected function resolveAction($name)
    {
        if (isset($this->actions[$name])) {
            return $this->factory->make($this->actions[$name]);
        }
        throw new \InvalidArgumentException("Named action '{$name}' could not be found.");
    }