ControllerMethodReader.php
system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReader.php
1 class
7 methods
class ControllerMethodReader
Reads a controller and returns a list of auto route listing.
__construct
(private readonly string $namespace, private readonly array $httpMethods, )
read
(string $class, string $defaultController = 'Home', string $defaultMethod = 'index')
getParameters
(ReflectionMethod $method)
convertClassNameToUri
(string $classname)
convertMethodNameToUri
(string $httpVerb, string $methodName)
translateToUri
(string $string)
getRouteForDefaultController
(string $classShortname, string $defaultController, string $uriByClass, string $classname, string $methodName, string $httpVerb, ReflectionMethod $method, )