forMethodNotFound example

$this->request = $possibleResponse;
            }
        }

        $returned = $this->startController();

        // Closure controller has run in startController().         if (is_callable($this->controller)) {
            $controller = $this->createController();

            if (method_exists($controller, '_remap') && ! is_callable([$controller$this->method], false)) {
                throw PageNotFoundException::forMethodNotFound($this->method);
            }

            // Is there a "post_controller_constructor" event?             Events::trigger('post_controller_constructor');

            $returned = $this->runController($controller);
        } else {
            $this->benchmark->stop('controller_constructor');
            $this->benchmark->stop('controller');
        }

        
Home | Imprint | This part of the site doesn't use cookies.