SlaxWeb\Bootstrap\Application::__construct |
( |
string |
$pubDir, |
|
|
string |
$appDir |
|
) |
| |
Constructor
Sets application properties. Retrieves the public directory and application directiories as input.
- Parameters
-
string | $pubDir | Public directory path |
string | $appDir | Application directory path |
SlaxWeb\Bootstrap\Application::init |
( |
| ) |
|
Application Initialization
Initialize the Application class by loading providers and routesfrom their respective locations.
- Returns
- void
SlaxWeb\Bootstrap\Application::load404Page |
( |
| ) |
|
|
protected |
Load Route Not Found Page
Loads the 404 page and returns its contents.
- Returns
- string
SlaxWeb\Bootstrap\Application::loadConfig |
( |
string |
$dir, |
|
|
bool |
$prepend = true |
|
) |
| |
|
protected |
Load configuration files
Scan the configuration resource location directory and load all found PHP files with the Config component, recursively.
- Parameters
-
string | $dir | Directory from which the configuration files are loaded |
bool | $prepend | Should configuration item names be prependedi with the names of configuration file names |
- Returns
- void
SlaxWeb\Bootstrap\Application::loadResources |
( |
| ) |
|
|
protected |
Load resources
Load the resource class names from the configuration, and register them with the service provider.
- Returns
- void
SlaxWeb\Bootstrap\Application::prepRequestData |
( |
| ) |
|
|
protected |
Prepare request data
Prepares the request URL if the config has a predefined base url set. If this is not set, then the request data is not set, and the Request class will do its best to guess its data. If the base url is set, then the HTTP method and the request URI have to be read from the $_SERVER superglobal.
- Returns
- void
SlaxWeb\Bootstrap\Application::run |
( |
Request |
$request, |
|
|
Response |
$response |
|
) |
| |
Execute Application
Take a Request and Resonse, and dispatch them with the help of the Route Dispatcher.
- Parameters
-
\SlaxWeb\Route\Request | $request | Received Request |
| | Symfony Prepared Response |
- Returns
- void
SlaxWeb\Bootstrap\Application::setRequestProperties |
( |
Request |
$request | ) |
|
|
protected |
Set application properties
Sets some basic request properties for the application.
- Parameters
-
\SlaxWeb\Route\Request | $request | Received Request |
- Returns
- void
The documentation for this class was generated from the following file:
- /opt/slax0rDev/slaxweb/bootstrap/src/Application.php