mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-11 09:53:19 +01:00
simplified Yii::import().
This commit is contained in:
@@ -285,19 +285,6 @@ abstract class Module extends Component
|
||||
$this->_layoutPath = FileHelper::ensureDirectory($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Imports the specified path aliases.
|
||||
* This method is provided so that you can import a set of path aliases when configuring a module.
|
||||
* The path aliases will be imported by calling [[Yii::import()]].
|
||||
* @param array $aliases list of path aliases to be imported
|
||||
*/
|
||||
public function setImport($aliases)
|
||||
{
|
||||
foreach ($aliases as $alias) {
|
||||
Yii::import($alias);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines path aliases.
|
||||
* This method calls [[Yii::setAlias()]] to register the path aliases.
|
||||
|
||||
Reference in New Issue
Block a user