改名
This commit is contained in:
@@ -82,13 +82,13 @@ class Annotation extends Component
|
|||||||
$this->_annotations[$alias] = [];
|
$this->_annotations[$alias] = [];
|
||||||
}
|
}
|
||||||
foreach ($paths as $path) {
|
foreach ($paths as $path) {
|
||||||
if (!str_contains($path, '.php')) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$explode = explode('/', $path);
|
$explode = explode('/', $path);
|
||||||
|
|
||||||
$explode_pop = array_pop($explode);
|
$explode_pop = array_pop($explode);
|
||||||
if (is_file($path)) {
|
if (is_file($path)) {
|
||||||
|
if (!str_contains($path, '.php')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$explode_pop = str_replace('.php', '', $explode_pop);
|
$explode_pop = str_replace('.php', '', $explode_pop);
|
||||||
$this->getReflect($namespace . '\\' . $explode_pop, $alias);
|
$this->getReflect($namespace . '\\' . $explode_pop, $alias);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user