改名
This commit is contained in:
@@ -34,7 +34,6 @@ use Snowflake\Channel;
|
||||
use Snowflake\Di\Service;
|
||||
use Snowflake\Error\ErrorHandler;
|
||||
use Snowflake\Error\Logger;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
use Snowflake\Exception\InitException;
|
||||
use Snowflake\Exception\NotFindClassException;
|
||||
use Snowflake\Jwt\Jwt;
|
||||
@@ -437,6 +436,16 @@ abstract class BaseApplication extends Service
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return SAnnotation
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getAnnotation(): SAnnotation
|
||||
{
|
||||
return $this->get('annotation');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return Async
|
||||
* @throws Exception
|
||||
@@ -482,7 +491,7 @@ abstract class BaseApplication extends Service
|
||||
'request' => ['class' => Request::class],
|
||||
'config' => ['class' => Config::class],
|
||||
'logger' => ['class' => Logger::class],
|
||||
'attributes' => ['class' => SAnnotation::class],
|
||||
'annotation' => ['class' => SAnnotation::class],
|
||||
'router' => ['class' => Router::class],
|
||||
'redis' => ['class' => Redis::class],
|
||||
'aop' => ['class' => Aop::class],
|
||||
|
||||
@@ -41,7 +41,7 @@ use Rpc\Producer as RPCProducer;
|
||||
* @property Connection $connections
|
||||
* @property Logger $logger
|
||||
* @property Jwt $jwt
|
||||
* @property SAnnotation $attributes
|
||||
* @property SAnnotation $annotation
|
||||
* @property Http2 $http2
|
||||
* @property BaseGoto $goto
|
||||
* @property Producer $kafka
|
||||
|
||||
@@ -120,7 +120,7 @@ class Snowflake
|
||||
*/
|
||||
public static function getAnnotation(): Annotation
|
||||
{
|
||||
return static::app()->getAttributes();
|
||||
return static::app()->getAnnotation();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user