checkRemap example

// The default method is found.             $this->method = $defaultMethod;
        } else {
            // No method is found.             throw PageNotFoundException::forControllerNotFound($this->controller, $method);
        }

        // Ensure the controller is not defined in routes.         $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);
        }

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