|
static | getControllers (string $subClass="\\Ubiquity\\controllers\\Controller", bool $backslash=false, bool $includeSubclass=false, bool $includeAbstract=false) |
|
static | controllerCacheUpdated (array &$config) |
|
static | storeDynamicRoutes (bool $isRest=false) |
|
static | getControllerCache (bool $isRest=false) |
|
static | getControllerCacheByDomain (bool $isRest=false, string $domain='') |
|
static | getControllerCacheIndex (bool $isRest=false) |
|
static | getRouteCache (string $routePath, array $routeArray, int $duration) |
|
static | isExpired (string $routePath, int $duration) |
|
static | setExpired (string $routePath) |
|
static | setRouteCache (string $routePath) |
| Stores a route response in cache.
|
|
static | addAdminRoutes () |
|
static | getRoutes () |
|
static | getControllerRoutes (string $controllerClass, bool $isRest=false) |
|
static | addRoute (string $path, string $controller, string $action='index', ?array $methods=null, string $name='', bool $isRest=false, int $priority=0, $callback=null) |
|
static | addRoutes ($pathArray, $controller, $action='index', $methods=null, $name='') |
|
static | addRestRoutes ($pathArray, $controller, $action='index', $methods=null, $name='') |
|
static | warmUpControllers (?array $controllers=null) |
| Preloads controllers.
|
|
|
static | expired (string $key, int $duration) |
|
|
static | storeRouteResponse (string $key, ?string $response) |
|
static | getRouteKey (string $routePath) |
|
static | addRoutes_ ($pathArray, $controller, $action='index', $methods=null, $name='', $isRest=false) |
|
Definition at line 24 of file RouterCacheTrait.php.
◆ addAdminRoutes()
static addAdminRoutes |
( |
| ) |
|
|
static |
◆ addRestRoutes()
static addRestRoutes |
( |
|
$pathArray, |
|
|
|
$controller, |
|
|
|
$action = 'index' , |
|
|
|
$methods = null , |
|
|
|
$name = '' |
|
) |
| |
|
static |
◆ addRoute()
static addRoute |
( |
string |
$path, |
|
|
string |
$controller, |
|
|
string |
$action = 'index' , |
|
|
?array |
$methods = null , |
|
|
string |
$name = '' , |
|
|
bool |
$isRest = false , |
|
|
int |
$priority = 0 , |
|
|
|
$callback = null |
|
) |
| |
|
static |
◆ addRoutes()
static addRoutes |
( |
|
$pathArray, |
|
|
|
$controller, |
|
|
|
$action = 'index' , |
|
|
|
$methods = null , |
|
|
|
$name = '' |
|
) |
| |
|
static |
◆ addRoutes_()
static addRoutes_ |
( |
|
$pathArray, |
|
|
|
$controller, |
|
|
|
$action = 'index' , |
|
|
|
$methods = null , |
|
|
|
$name = '' , |
|
|
|
$isRest = false |
|
) |
| |
|
staticprivate |
◆ controllerCacheUpdated()
static controllerCacheUpdated |
( |
array & |
$config | ) |
|
|
static |
◆ expired()
static expired |
( |
string |
$key, |
|
|
int |
$duration |
|
) |
| |
|
staticprotected |
◆ getControllerCache()
static getControllerCache |
( |
bool |
$isRest = false | ) |
|
|
static |
◆ getControllerCacheByDomain()
static getControllerCacheByDomain |
( |
bool |
$isRest = false , |
|
|
string |
$domain = '' |
|
) |
| |
|
static |
◆ getControllerCacheIndex()
static getControllerCacheIndex |
( |
bool |
$isRest = false | ) |
|
|
static |
◆ getControllerRoutes()
static getControllerRoutes |
( |
string |
$controllerClass, |
|
|
bool |
$isRest = false |
|
) |
| |
|
static |
◆ getControllers()
static getControllers |
( |
string |
$subClass = "\\Ubiquity\\controllers\\Controller" , |
|
|
bool |
$backslash = false , |
|
|
bool |
$includeSubclass = false , |
|
|
bool |
$includeAbstract = false |
|
) |
| |
|
staticabstract |
◆ getRouteCache()
static getRouteCache |
( |
string |
$routePath, |
|
|
array |
$routeArray, |
|
|
int |
$duration |
|
) |
| |
|
static |
◆ getRouteKey()
static getRouteKey |
( |
string |
$routePath | ) |
|
|
staticprivate |
◆ getRoutes()
◆ isExpired()
static isExpired |
( |
string |
$routePath, |
|
|
int |
$duration |
|
) |
| |
|
static |
◆ setExpired()
static setExpired |
( |
string |
$routePath | ) |
|
|
static |
◆ setRouteCache()
static setRouteCache |
( |
string |
$routePath | ) |
|
|
static |
Stores a route response in cache.
- Parameters
-
string | $routePath | The route path |
- Returns
- string|null
Definition at line 154 of file RouterCacheTrait.php.
◆ storeDynamicRoutes()
static storeDynamicRoutes |
( |
bool |
$isRest = false | ) |
|
|
static |
◆ storeRouteResponse()
static storeRouteResponse |
( |
string |
$key, |
|
|
?string |
$response |
|
) |
| |
|
staticprivate |
◆ warmUpControllers()
static warmUpControllers |
( |
?array |
$controllers = null | ) |
|
|
static |
Preloads controllers.
To use only with async servers (Swoole, Workerman)
- Parameters
-
Definition at line 220 of file RouterCacheTrait.php.
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/traits/RouterCacheTrait.php