v1.0.0
English

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, ) public
read (string $class, string $defaultController = 'Home', string $defaultMethod = 'index') public
getParameters (ReflectionMethod $method) private
convertClassNameToUri (string $classname) private
convertMethodNameToUri (string $httpVerb, string $methodName) private
translateToUri (string $string) private
getRouteForDefaultController (string $classShortname, string $defaultController, string $uriByClass, string $classname, string $methodName, string $httpVerb, ReflectionMethod $method, ) private
phpDG v1.0.0 ControllerMethodReader.php 662 files 498 classes 763 fn
Generated