This commit is contained in:
2020-08-31 23:00:53 +08:00
parent f09c2800ef
commit 8ccfe00b0f
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -502,7 +502,7 @@ class Router extends Application implements RouterInterface
/** /**
* @param $file * @param $file
* @throws ReflectionException * @throws ReflectionException
* @throws NotFindClassException * @throws Exception
*/ */
private function loadFile($file) private function loadFile($file)
{ {
@@ -511,7 +511,7 @@ class Router extends Application implements RouterInterface
$prefix = APP_PATH . 'app/Http/'; $prefix = APP_PATH . 'app/Http/';
/** @var Annotation $annotation */ /** @var Annotation $annotation */
$annotation = Snowflake::createObject(Annotation::class); $annotation = make(Annotation::class, Annotation::class);
$annotation->registration_notes($prefix . 'Interceptor', 'App\Http\Interceptor'); $annotation->registration_notes($prefix . 'Interceptor', 'App\Http\Interceptor');
$annotation->registration_notes($prefix . 'Limits', 'App\Http\Limits'); $annotation->registration_notes($prefix . 'Limits', 'App\Http\Limits');
-1
View File
@@ -6,7 +6,6 @@ namespace Snowflake\Annotation;
use Exception; use Exception;
use ReflectionClass; use ReflectionClass;
use ReflectionException; use ReflectionException;
use ReflectionMethod;
use Snowflake\Abstracts\BaseAnnotation; use Snowflake\Abstracts\BaseAnnotation;
use Snowflake\Exception\NotFindClassException; use Snowflake\Exception\NotFindClassException;
use Snowflake\Snowflake; use Snowflake\Snowflake;