mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-21 22:47:17 +01:00
refactored object creation.
added more exception classes. working on request and response classes.
This commit is contained in:
@@ -27,7 +27,7 @@ use yii\util\FileHelper;
|
||||
* @author Qiang Xue <qiang.xue@gmail.com>
|
||||
* @since 2.0
|
||||
*/
|
||||
abstract class Module extends Component implements Initable
|
||||
abstract class Module extends Component
|
||||
{
|
||||
/**
|
||||
* @var array custom module parameters (name => value).
|
||||
@@ -584,7 +584,7 @@ abstract class Module extends Component implements Initable
|
||||
}
|
||||
if (class_exists($className, false) && is_subclass_of($className, '\yii\base\Controller')) {
|
||||
return array(
|
||||
$className::newInstance(array(), $id, $this),
|
||||
new $className($id, $this),
|
||||
$route,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user