framework/base/Module.php
public function setAliases($aliases)
    {
        foreach ($aliases as $name => $alias) {
            Yii::setAlias($name, $alias);
        }
    }
public function setAliases($aliases)
    {
        foreach ($aliases as $name => $alias) {
            Yii::setAlias($name, $alias);
        }
    }
public function setAliases ( $ aliases ) { foreach ( $ aliases as $ name => $ alias ) { Yii :: setAlias ( $ name , $ alias ) ; } }
Defines path aliases.
This method calls [[Yii::setAlias()]] to register the path aliases.
This method is provided so that you can define path aliases when configuring a module.
@property array list of path aliases to be defined. The array keys are alias names
(must start with `@`) and the array values are the corresponding paths or aliases.
See [[setAliases()]] for an example.
@param array $aliases list of path aliases to be defined. The array keys are alias names
(must start with `@`) and the array values are the corresponding paths or aliases.
For example,

```php
[
'@models' => '@app/models', // an existing alias
'@backend' => __DIR__ . '/../backend',  // a directory
]
```
Defines path aliases . This method calls [[ Yii :: setAlias () ]] to register the path aliases . This method is provided so that you can define path aliases when configuring a module . @property array list of path aliases to be defined . The array keys are alias names ( must start with @ ) and the array values are the corresponding paths or aliases . See [[ setAliases () ]] for an example . @param array $aliases list of path aliases to be defined . The array keys are alias names ( must start with @ ) and the array values are the corresponding paths or aliases . For example