This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Qiang Xue
2011-07-31 01:17:42 -04:00
gitea-unlock(16/)
parent b158ff074b
commit f53a188fc6
octicon-diff(16/tw-mr-1) 2 changed files with 7 additions and 43 deletions

10
framework/YiiBase.php
View File

@@ -317,9 +317,6 @@ class YiiBase
* pairs in the array will be used to initialize the corresponding object properties.
* For example,
*
* Any additional parameters passed to this method will be
* passed to the constructor of the object being created.
*
* ~~~
* $component = Yii::createComponent('@app/components/GoogleMap');
* $component = Yii::createComponent('\application\components\GoogleMap');
@@ -329,6 +326,13 @@ class YiiBase
* ));
* ~~~
*
* Any additional parameters passed to this method will be
* passed to the constructor of the object being created.
*
* If a component class implements the [[\yii\base\Initable]] interface,
* its [[\yii\base\Initable::init|init]] method will be invoked after
* its properties have been initialized.
*
* @param mixed $config the configuration. It can be either a string or an array.
* @return mixed the created object
* @throws \yii\base\Exception if the configuration does not have a 'class' element.