改名
This commit is contained in:
@@ -26,6 +26,7 @@ class Annotation extends Component
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $path
|
* @param string $path
|
||||||
|
* @param string $namespace
|
||||||
* @param string $alias
|
* @param string $alias
|
||||||
* @return $this
|
* @return $this
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
@@ -65,6 +66,7 @@ class Annotation extends Component
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $paths
|
* @param array $paths
|
||||||
|
* @param string $namespace
|
||||||
* @param string $alias
|
* @param string $alias
|
||||||
* @return $this
|
* @return $this
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
@@ -80,8 +82,11 @@ class Annotation extends Component
|
|||||||
$explode_pop = array_pop($explode);
|
$explode_pop = array_pop($explode);
|
||||||
if (is_file($path)) {
|
if (is_file($path)) {
|
||||||
$explode_pop = str_replace('.php', '', $explode_pop);
|
$explode_pop = str_replace('.php', '', $explode_pop);
|
||||||
|
$annotation = $this->getReflect($namespace . '\\' . $explode_pop);
|
||||||
$this->_annotations[$alias][] = $this->getReflect($namespace . '\\' . $explode_pop);
|
if (empty($annotation)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$this->_annotations[$alias][] = $annotation;
|
||||||
} else {
|
} else {
|
||||||
$this->scanDir(glob($path . '/*'), $namespace . '\\' . $explode_pop, $alias);
|
$this->scanDir(glob($path . '/*'), $namespace . '\\' . $explode_pop, $alias);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user