public setAliases ( array $aliases ) | ||
$aliases | 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. For example, ```php [ '@models' => '@app/models', // an existing alias '@backend' => __DIR__ . '/../backend', // a directory ] ``` |