改名
This commit is contained in:
@@ -85,6 +85,7 @@ class Annotation extends Component
|
|||||||
* @param string $alias
|
* @param string $alias
|
||||||
* @return $this
|
* @return $this
|
||||||
* @throws ReflectionException|NotFindPropertyException
|
* @throws ReflectionException|NotFindPropertyException
|
||||||
|
* @throws NotFindClassException
|
||||||
*/
|
*/
|
||||||
private function scanDir(array $paths, string $namespace, string $alias): static
|
private function scanDir(array $paths, string $namespace, string $alias): static
|
||||||
{
|
{
|
||||||
@@ -115,10 +116,12 @@ class Annotation extends Component
|
|||||||
* @return array
|
* @return array
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
* @throws NotFindPropertyException
|
* @throws NotFindPropertyException
|
||||||
|
* @throws NotFindClassException
|
||||||
*/
|
*/
|
||||||
private function getReflect(string $class, string $alias): array
|
private function getReflect(string $class, string $alias): array
|
||||||
{
|
{
|
||||||
$reflect = $this->reflectClass($class);
|
$reflect = $this->reflectClass($class);
|
||||||
|
var_dump($class, $reflect);
|
||||||
if (empty($reflect)) {
|
if (empty($reflect)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
@@ -143,7 +146,6 @@ class Annotation extends Component
|
|||||||
*/
|
*/
|
||||||
private function resolveMethod(ReflectionClass $reflect, $class, $alias, $object)
|
private function resolveMethod(ReflectionClass $reflect, $class, $alias, $object)
|
||||||
{
|
{
|
||||||
var_dump($reflect->getName());
|
|
||||||
try {
|
try {
|
||||||
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
||||||
if ($method->class != $class) {
|
if ($method->class != $class) {
|
||||||
|
|||||||
Reference in New Issue
Block a user