Scans a controller to detect routes defined by annotations or attributes.
More...
|
static | parseRouteArray (&$result, $controllerClass, $routeArray, \ReflectionMethod $method, $methodName, $prefix='', $httpMethods=NULL) |
|
static | parseMethodPath (\ReflectionFunctionAbstract $method, $path) |
|
static | cleanpath ($prefix, $path="", &$isRoot=false) |
|
static | addParamsPath ($path, \ReflectionFunctionAbstract $method, $requirements) |
|
static | scanParam (&$parameters, &$hasOptional, $matches, $index, $paramMatch, $find, &$path, $requirement) |
|
|
const | HTTP_METHODS =['head','get','post','patch','put','delete','options','connect'] |
|
|
static | generateRouteName (string $controllerName, string $action) |
|
static | createRouteMethod (&$result, $controllerClass, $path, $httpMethods, $method, $parameters, $name, $cache, $duration, $priority, $callback=null, $isRoot=false) |
|
|
static array | $excludeds = [ '__construct','isValid','initialize','finalize','onInvalidControl','loadView','forward','redirectToRoute' ] |
|
Scans a controller to detect routes defined by annotations or attributes.
Ubiquity\cache\parser$ControllerParser This class is part of Ubiquity
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.1.1
Definition at line 21 of file ControllerParser.php.
◆ __construct()
◆ asArray()
◆ createRouteMethod()
static createRouteMethod |
( |
& |
$result, |
|
|
|
$controllerClass, |
|
|
|
$path, |
|
|
|
$httpMethods, |
|
|
|
$method, |
|
|
|
$parameters, |
|
|
|
$name, |
|
|
|
$cache, |
|
|
|
$duration, |
|
|
|
$priority, |
|
|
|
$callback = null , |
|
|
|
$isRoot = false |
|
) |
| |
|
staticprivate |
◆ generateRouteAnnotationFromMethod()
generateRouteAnnotationFromMethod |
( |
\ReflectionMethod |
$method | ) |
|
|
private |
◆ generateRouteName()
static generateRouteName |
( |
string |
$controllerName, |
|
|
string |
$action |
|
) |
| |
|
staticprivate |
◆ isRest()
◆ isRoutable()
isRoutable |
( |
\ReflectionMethod |
$method | ) |
|
|
private |
◆ parse()
parse |
( |
|
$controllerClass | ) |
|
◆ parseAnnot()
parseAnnot |
( |
& |
$annot, |
|
|
|
$method |
|
) |
| |
|
private |
◆ parseMethods()
parseMethods |
( |
|
$methods, |
|
|
|
$controllerClass, |
|
|
|
$inherited, |
|
|
|
$automated |
|
) |
| |
|
private |
◆ parseRouteArray()
static parseRouteArray |
( |
& |
$result, |
|
|
|
$controllerClass, |
|
|
|
$routeArray, |
|
|
\ReflectionMethod |
$method, |
|
|
|
$methodName, |
|
|
|
$prefix = '' , |
|
|
|
$httpMethods = NULL |
|
) |
| |
|
static |
◆ setSilent()
setSilent |
( |
bool |
$silent | ) |
|
◆ $annotsEngine
◆ $controllerClass
◆ $excludeds
array $excludeds = [ '__construct','isValid','initialize','finalize','onInvalidControl','loadView','forward','redirectToRoute' ] |
|
staticprivate |
◆ $mainRouteClass
◆ $rest
◆ $routesMethods
array $routesMethods = [ ] |
|
private |
◆ $silent
◆ HTTP_METHODS
const HTTP_METHODS =['head','get','post','patch','put','delete','options','connect'] |
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/cache/parser/ControllerParser.php