The configure event of class Core\ConfigureEvent is fired after the application
is configured. Event hooks may use this event to further configure the application.
public
boot( void )
Boot the modules and configure Debug, Prototype and Events.
Boot the modules and configure Debug, Prototype and Events.
The boot event of class Core\BootEvent is fired after the boot is finished.
The ICANBOOGIE_READY_TIME_FLOAT key is added to the $_SERVER super global with the
micro-time at which the boot finished.
public
__invoke( ICanBoogie\HTTP\Request$request = null )
Run the application.
Run the application.
In order to avoid error messages triggered by PHP fatal errors to be send with a 200 (Ok)
HTTP code, the HTTP code is changed to 500 before the application is run (and booted). When
the process runs properly the HTTP code is changed to the appropriate value by the response.
The default response has the ICanBoogie\Status::INTERNAL_SERVER_ERROR status code and
the appropriate header fields so it is not cached. That way, if something goes wrong
and an error message is displayed it won't be cached by a proxi.
Constants summary
STATUS_VOID: integer
Status of the application.
Status of the application.
0
STATUS_INSTANTIATING: integer
1
STATUS_INSTANTIATED: integer
2
STATUS_CONFIGURING: integer
3
STATUS_CONFIGURED: integer
4
STATUS_BOOTING: integer
5
STATUS_BOOTED: integer
6
STATUS_RUNNING: integer
7
STATUS_TERMINATED: integer
8
Properties summary
Magic properties
public
$configs
: Config
Configurations manager.
public
$vars
: ICanBoogie\Storage\Storage
Persistent variables registry.
public
$session
: Session
User's session.
public
$language
: string
Locale language.
public
$timezone
: string|integer
Time zone.
public
$config
: array
The "app" configuration.
public read-only
$is_configured
: boolean
true if the application is configured, false otherwise.
public read-only
$is_booting
: boolean
true if the application is booting, false otherwise.
public read-only
$is_booted
: boolean
true if the application is booted, false otherwise.
public read-only
$is_running
: boolean
true if the application is running, false otherwise.