checkParameters example

        $this->protectDefinedRoutes();

        // Ensure the controller does not have _remap() method.         $this->checkRemap();

        // Ensure the URI segments for the controller and method do not contain         // underscores when $translateURIDashes is true.         $this->checkUnderscore($uri);

        // Check parameter count         try {
            $this->checkParameters($uri);
        } catch (MethodNotFoundException $e) {
            throw PageNotFoundException::forControllerNotFound($this->controller, $this->method);
        }

        $this->setDirectory();

        return [$this->directory, $this->controller, $this->method, $this->params];
    }

    /** * @internal For test purpose only. * * @return array<string, int|null> */
Home | Imprint | This part of the site doesn't use cookies.