AutoRouterImproved.php
system/Router/AutoRouterImproved.php
1 class
15 methods
class AutoRouterImproved
New Secure Router for Auto-Routing
__construct
(/**
* List of controllers in Defined Routes that should not be accessed via this Auto-Routing.
*/
private readonly array $protectedControllers, string $namespace, private readonly string $defaultController, /**
* The name of the default method without HTTP verb prefix.
*/
private readonly string $defaultMethod, /**
* Whether dashes in URI's should be converted
* to underscores when determining method names.
*/
private readonly bool $translateURIDashes, )
createSegments
(string $uri)
searchFirstController
()
searchLastDefaultController
()
getRoute
(string $uri, string $httpVerb)
getPos
()
setDirectory
()
protectDefinedRoutes
()
checkParameters
()
checkRemap
()
checkUnderscore
()
checkUriForController
(string $classname)
checkUriForMethod
(string $method)
isValidSegment
(string $segment)
translateURI
(string $segment)