|
|
@ -140,6 +140,11 @@ abstract class Application extends Module |
|
|
|
$this->registerCoreComponents(); |
|
|
|
$this->registerCoreComponents(); |
|
|
|
|
|
|
|
|
|
|
|
Component::__construct($config); |
|
|
|
Component::__construct($config); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->preloadComponents(); |
|
|
|
|
|
|
|
if ($this->controllerNamespace === null) { |
|
|
|
|
|
|
|
$this->controllerNamespace = 'app\\controllers'; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -172,20 +177,6 @@ abstract class Application extends Module |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Initializes the application. |
|
|
|
|
|
|
|
* This method is called after the application is created and initialized with property values |
|
|
|
|
|
|
|
* given in configuration. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function init() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$this->preloadComponents(); |
|
|
|
|
|
|
|
if ($this->controllerNamespace === null) { |
|
|
|
|
|
|
|
$this->controllerNamespace = 'app\\controllers'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Loads components that are declared in [[preload]]. |
|
|
|
* Loads components that are declared in [[preload]]. |
|
|
|
* @throws InvalidConfigException if a component or module to be preloaded is unknown |
|
|
|
* @throws InvalidConfigException if a component or module to be preloaded is unknown |
|
|
|
*/ |
|
|
|
*/ |
|
|
|