startController example

            if ($possibleResponse instanceof ResponseInterface) {
                $this->outputBufferingEnd();

                return $possibleResponse;
            }

            if ($possibleResponse instanceof IncomingRequest || $possibleResponse instanceof CLIRequest) {
                $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');

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