改名
This commit is contained in:
@@ -139,7 +139,6 @@ class Node
|
|||||||
/**
|
/**
|
||||||
* @param string $handler
|
* @param string $handler
|
||||||
* @return array
|
* @return array
|
||||||
* @throws ReflectionException
|
|
||||||
*/
|
*/
|
||||||
private function splitHandler(string $handler): array
|
private function splitHandler(string $handler): array
|
||||||
{
|
{
|
||||||
@@ -155,7 +154,6 @@ class Node
|
|||||||
* @param string $method
|
* @param string $method
|
||||||
* @param $handler
|
* @param $handler
|
||||||
* @param $_injectParameters
|
* @param $_injectParameters
|
||||||
* @throws NotFindClassException
|
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@@ -173,7 +171,6 @@ class Node
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
* @throws NotFindClassException
|
|
||||||
*/
|
*/
|
||||||
public function setParameters(): static
|
public function setParameters(): static
|
||||||
{
|
{
|
||||||
|
|||||||
+7
-3
@@ -6,10 +6,10 @@ namespace Annotation;
|
|||||||
|
|
||||||
use DirectoryIterator;
|
use DirectoryIterator;
|
||||||
use Exception;
|
use Exception;
|
||||||
use ReflectionClass;
|
|
||||||
use ReflectionException;
|
|
||||||
use Kiri\Abstracts\BaseObject;
|
use Kiri\Abstracts\BaseObject;
|
||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
|
use ReflectionClass;
|
||||||
|
use ReflectionException;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
|
||||||
|
|
||||||
@@ -151,7 +151,11 @@ class Loader extends BaseObject
|
|||||||
*/
|
*/
|
||||||
private function getReflect(DirectoryIterator $path, string $namespace): ?ReflectionClass
|
private function getReflect(DirectoryIterator $path, string $namespace): ?ReflectionClass
|
||||||
{
|
{
|
||||||
return Kiri::getDi()->getReflect($this->explodeFileName($path, $namespace));
|
$class = $this->explodeFileName($path, $namespace);
|
||||||
|
if (!class_exists($class)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return Kiri::getDi()->getReflect($class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user