base\Application registerErrorHandler()

registerErrorHandler() protected method Registers the errorHandler component as a PHP error handler. protected void registerErrorHandler ( &$config )$config array Application config

base\Application preInit()

preInit() public method Pre-initializes the application. This method is called at the beginning of the application constructor. It initializes several important application properties. If you override this method, please make sure you call the parent implementation. public void preInit ( &$config )$config array The application configuration throws yii\base\InvalidConfigException if either $id or $basePath configuration is missing.

base\Application init()

init() public method Initializes the module. This method is called after the module is created and initialized with property values given in configuration. The default implementation will initialize $controllerNamespace if it is not set. If you override this method, please make sure you call the parent implementation. public void init ( )

base\Application handleRequest()

handleRequest() public abstract method Handles the specified request. This method should return an instance of yii\base\Response or its child class which represents the handling result of the request. public abstract yii\base\Response handleRequest ( $request )$request yii\base\Request The request to be handled return yii\base\Response The resulting response

base\Application getView()

getView() public method Returns the view object. public yii\base\View|yii\web\View getView ( )return yii\base\View|yii\web\View The view application component that is used to render various view files.

base\Application getVendorPath()

getVendorPath() public method Returns the directory that stores vendor files. public string getVendorPath ( )return string The directory that stores vendor files. Defaults to "vendor" directory under $basePath.

base\Application getUrlManager()

getUrlManager() public method Returns the URL manager for this application. public yii\web\UrlManager getUrlManager ( )return yii\web\UrlManager The URL manager for this application.

base\Application getUniqueId()

getUniqueId() public method Returns an ID that uniquely identifies this module among all modules within the current application. Since this is an application instance, it will always return an empty string. public string getUniqueId ( )return string The unique ID of the module.

base\Application getTimeZone()

getTimeZone() public method Returns the time zone used by this application. This is a simple wrapper of PHP function date_default_timezone_get(). If time zone is not configured in php.ini or application config, it will be set to UTC by default. See also http://php.net/manual/en/function.date-default-timezone-get.php. public string getTimeZone ( )return string The time zone used by this application.

base\Application getSecurity()

getSecurity() public method Returns the security component. public yii\base\Security getSecurity ( )return yii\base\Security The security application component.