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."); }