BootStrap
class BootStrap
Class BootStrap
Constants
FALLBACK_LANG |
Fallback language. |
Properties
static protected float | $startTimer | Return current Unix timestamp with microseconds. | |
static private BootStrap | $instance | Hold the classes on instance. | |
protected string | $basePath | The base path where project is placed. | |
protected bool | $isDebug | True if it's in debug mode, otherwise false. | |
protected string | $routeFile | The full route file path. | |
protected Router | $router | Route to manage available routes. | |
protected Session | $session | To manage PHP Sessions. | |
protected string | $defaultLang | Default language to use. | |
protected Translator | $translator | The translator manager. | |
protected Database | $database | Manage connection and database queries. | |
protected array | $configData | The list of config value from file. | |
protected TemplateRender | $renderer | Manage the renderer. | |
protected Container | $container | Contains dependencies. | |
protected Config | $configManager | ||
protected Request | $request | Request from client. | |
protected Response | $response | Response to client. | |
protected Logger | $log | The logger. | |
protected DebugTool | $debugTool | The debug tool used. | |
protected PhpArrayAdapter | $cacheEngine | The caché core engine adapter. | |
protected RegionalInfo | $regionalInfo | The regional information for this app. |
Methods
__construct(string $basePath = __DIR__ . DIRECTORY_SEPARATOR .
'..' . DIRECTORY_SEPARATOR . '..', bool $debug = false)
BootStrap constructor.
static BootStrap
getInstance()
Returns this instance.
static float
getStartTime()
Return start time with microtime.
init()
Initialize the class.
toContainer()
Put it to a container, to be accessible from any place.
run()
No description
Details
at line 184
__construct(string $basePath = __DIR__ . DIRECTORY_SEPARATOR . '..'
. DIRECTORY_SEPARATOR . '..', bool $debug = false)
BootStrap constructor.
at line 228
static
BootStrap
getInstance()
Returns this instance.
at line 238
static float
getStartTime()
Return start time with microtime.
at line 246
init()
Initialize the class.
at line 259
private
toContainer()
Put it to a container, to be accessible from any place.