class Bootloader

XELOS Bootloader

Use the Bootloader::boot() function to startup the basic XELOS environment The Boot sequence will load all necessary files and configurations to be able to use the XF Core Singleton afterwards. It does not yet INITIALIZE the XF Core Singelton which is the next required step to be able to finally use XF::instance()

Methods

static 
boot()

Boot the XELOS Bootloader The Boot sequence will load all necessary files and configurations to be able to use the XF Core Singleton afterwards.

static bool
loadConfiguration($configuration_file)

Define a configuration file which should be loaded instead

static void
onError(int $errNo, string $errStr, string $errFile, int $errLine)

This method is used by the temporary error handling while booting the system and the main logging part is not available. After the process the main error handler and logging overwrite this part.

static 
onException(Throwable $ex)

Handle Exception in case we have problem before Logger is setup

static 
setMode($mode)

Sets the XF_MODE for the following boot sequence

Details

at line 65
static boot()

Boot the XELOS Bootloader The Boot sequence will load all necessary files and configurations to be able to use the XF Core Singleton afterwards.

It does not yet INITIALIZE the XF Core Singleton which is the next required step to be able to finally use XF::instance()

at line 123
static bool loadConfiguration($configuration_file)

Define a configuration file which should be loaded instead

Parameters

$configuration_file

Return Value

bool

at line 141
static void onError(int $errNo, string $errStr, string $errFile, int $errLine)

This method is used by the temporary error handling while booting the system and the main logging part is not available. After the process the main error handler and logging overwrite this part.

Parameters

int $errNo
string $errStr
string $errFile
int $errLine

Return Value

void

at line 174
static onException(Throwable $ex)

Handle Exception in case we have problem before Logger is setup

Parameters

Throwable $ex

at line 112
static setMode($mode)

Sets the XF_MODE for the following boot sequence

Parameters

$mode