v1.0.0
English

AutoRouter.php

system/Router/AutoRouter.php
1 class 9 methods

class AutoRouter

Router for Auto-Routing
__construct (/** * List of CLI routes that do not contain '*' routes. * * @var array<string, (Closure(mixed...): (ResponseInterface|string|void))|string> [routeKey => handler] */ private readonly array $cliRoutes, /** * Default namespace for controllers. */ private readonly string $defaultNamespace, /** * The name of the controller class. */ private string $controller, /** * The name of the method to use. */ private string $method, /** * Whether dashes in URI's should be converted * to underscores when determining method names. */ private bool $translateURIDashes, ) public
getRoute (string $uri, string $httpVerb) public
setTranslateURIDashes (bool $val = false) public
scanControllers (array $segments) private
isValidSegment (string $segment) private
setDirectory (?string $dir = null, bool $append = false, bool $validate = true) public
directory () public
controllerName () private
methodName () private
phpDG v1.0.0 AutoRouter.php 662 files 498 classes 763 fn
Generated