改名
This commit is contained in:
@@ -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');
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user