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