/** * Resolve an action instance by name. * * @param $name * @return \FluxBB\Core\Action * @throws \InvalidArgumentException */ 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."); }