Property | Type | Description | |
---|---|---|---|
$catchAll | the configuration specifying a controller action which should handle all user requests. This is mainly used when the application is in maintenance mode and needs to handle all incoming requests via a single action. The configuration is an array whose first element specifies the route of the action. The rest of the array elements (key-value pairs) specify the parameters to be bound to the action. For example, php [ 'offline/notice', 'param1' => 'value1', 'param2' => 'value2', ] Defaults to null, meaning catch-all is not used. | ||
$controller | the currently active controller instance | ||
$defaultRoute | the default route of this application. Defaults to 'site'. |
Method | Description | |
---|---|---|
coreComponents ( ) | ||
getErrorHandler ( ) : |
Returns the error handler component. | |
getHomeUrl ( ) : string | ||
getRequest ( ) : |
Returns the request component. | |
getResponse ( ) : |
Returns the response component. | |
getSession ( ) : yii\web\Session | Returns the session component. | |
getUser ( ) : |
Returns the user component. | |
handleRequest ( |
Handles the specified request. | |
setHomeUrl ( string $value ) |
Method | Description | |
---|---|---|
bootstrap ( ) |
public getErrorHandler ( ) : |
||
return | the error handler application component. |
public getRequest ( ) : |
||
return | the request component. |
public getResponse ( ) : |
||
return | the response component. |
public getSession ( ) : yii\web\Session | ||
return | yii\web\Session | the session component. |
public getUser ( ) : |
||
return | the user component. |
public handleRequest ( |
||
$request | the request to be handled | |
return | the resulting response |
public $catchAll |