|
|
@ -158,8 +158,8 @@ class YiiBase |
|
|
|
{ |
|
|
|
{ |
|
|
|
foreach ($namespaces as $name => $path) { |
|
|
|
foreach ($namespaces as $name => $path) { |
|
|
|
if ($name !== '') { |
|
|
|
if ($name !== '') { |
|
|
|
$name = '@' . str_replace('\\', '/', $name); |
|
|
|
$name = trim(strtr($name, array('\\' => '/', '_' => '/')), '/'); |
|
|
|
static::setAlias($name, $path); |
|
|
|
static::setAlias('@' . $name, rtrim($path, '/\\') . '/' . $name); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|