Startup for async platforms (Swoole, Workerman, Roadrunner, php-pm...) Ubiquity\controllers$StartupAsync This class is part of Ubiquity.
More...
|
| static | forward (string $url, bool $initialize=true, bool $finalize=true) |
| | Forwards to url.
|
| |
| static | runAction (array &$u, bool $initialize=true, bool $finalize=true) |
| | Runs an action on a controller.
|
| |
| static | getControllerInstance (string $controllerName) |
| |
| static | warmupAction (string $controller, string $action='index') |
| |
| static | warmupForward (string $url, bool $initialize=true, bool $finalize=true) |
| |
| static | run (array &$config) |
| | Handles the request.
|
| |
| static | init (array &$config) |
| | Initialize the app with $config array.
|
| |
| static | getTemplateEngineInstance () |
| | Returns the template engine instance.
|
| |
| static | startDefaultTemplateEngine () |
| | Starts the default Template engine (Twig for Webtools).
|
| |
| static | runCallable (array &$u) |
| | Runs a callback.
|
| |
| static | injectDependencies ($controller) |
| | Injects the dependencies from the di config key in a controller.
|
| |
| static | runAsString (array &$u, bool $initialize=true, bool $finalize=true) |
| | Runs an action on a controller and returns a string.
|
| |
| static | onError (int $code, ?string $message=null, $controllerInstance=null) |
| |
| static | logError (int $code, string $message) |
| |
| static | getController () |
| | Returns the active controller name.
|
| |
| static | getControllerSimpleName () |
| | Returns the class simple name of the active controller.
|
| |
| static | getViewNameFileExtension () |
| | Returns the extension for view files.
|
| |
| static | getAction () |
| | Returns tha active action.
|
| |
| static | getActionParams () |
| | Returns the active parameters.
|
| |
| static | getFrameworkDir () |
| | Returns the framework directory.
|
| |
| static | getApplicationDir () |
| | Returns the application directory (app directory)
|
| |
| static | getApplicationName () |
| | Returns the application name.
|
| |
Startup for async platforms (Swoole, Workerman, Roadrunner, php-pm...) Ubiquity\controllers$StartupAsync 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 16 of file StartupAsync.php.
◆ forward()
| static forward |
( |
string |
$url, |
|
|
bool |
$initialize = true, |
|
|
bool |
$finalize = true |
|
) |
| |
|
static |
Forwards to url.
- Parameters
-
| string | $url | The url to forward to |
| boolean | $initialize | If true, the initialize method of the controller is called |
| boolean | $finalize | If true, the finalize method of the controller is called |
Reimplemented from Startup.
Definition at line 31 of file StartupAsync.php.
◆ getControllerInstance()
| static getControllerInstance |
( |
string |
$controllerName | ) |
|
|
static |
◆ runAction()
| static runAction |
( |
array & |
$u, |
|
|
bool |
$initialize = true, |
|
|
bool |
$finalize = true |
|
) |
| |
|
static |
Runs an action on a controller.
- Parameters
-
| array | $u | An array containing controller, action and parameters |
| boolean | $initialize | If true, the initialize method of the controller is called |
| boolean | $finalize | If true, the finalize method of the controller is called |
Reimplemented from Startup.
Definition at line 64 of file StartupAsync.php.
◆ warmupAction()
| static warmupAction |
( |
string |
$controller, |
|
|
string |
$action = 'index' |
|
) |
| |
|
static |
◆ warmupForward()
| static warmupForward |
( |
string |
$url, |
|
|
bool |
$initialize = true, |
|
|
bool |
$finalize = true |
|
) |
| |
|
static |
◆ $controllers
◆ $routes
◆ FINALIZE
◆ INITIALIZE
◆ IS_VALID
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/controllers/StartupAsync.php