Property | Type | Description | |
---|---|---|---|
$app | The application object. | ||
$configFile | The path to the config file, which returns an array containing you configuration. | ||
$mockOnly | When enabled the boot process will not return/echo something, but the variabled will contain the Application object. |
Method | Description | |
---|---|---|
applicationConsole ( ) : string | integer | Run Cli-Application based on the provided config file. | |
applicationWeb ( ) : string | Run Web-Application based on the provided config file. | |
getConfigArray ( ) : array | Get the config array from the configFile path with the predefined values. | |
getCoreBasePath ( ) : string | Returns the path to luya core files | |
getSapiName ( ) : string | Returns the current sapi name in lower case. | |
run ( ) : luya\web\Application | luya\cli\Application | Run the application based on the Sapi Name. | |
setConfigArray ( array $config ) | This method allows you to directly inject a configuration array instead of using the config file method. | |
setYiiPath ( string $baseYiiFile ) | Setter method for the base Yii file. |
Method | Description | |
---|---|---|
includeYii ( ) : boolean | Helper method to check whether the provided Yii Base file exists, if yes include and return the file. |
public applicationConsole ( ) : string | integer | ||
return | string | integer |
public applicationWeb ( ) : string | ||
return | string | Returns the Yii Application run() method if mock is disabled. Otherwise returns void |
public getConfigArray ( ) : array | ||
return | array | The array which will be injected into the Application Constructor. |
public getCoreBasePath ( ) : string | ||
return | string | The base path to the luya core folder. |
public getSapiName ( ) : string | ||
return | string | e.g. cli or web |
public run ( ) : luya\web\Application | luya\cli\Application | ||
return | luya\web\Application | luya\cli\Application | Application objected based on the sapi name. |
public setConfigArray ( array $config ) | ||
$config | array | The configuration array for the application. |
public setYiiPath ( string $baseYiiFile ) | ||
$baseYiiFile | string | The path to the Yii.php file. |
public $configFile |