This commit is contained in:
2020-08-31 12:38:32 +08:00
parent 683a39dded
commit 65c443ec87
126 changed files with 7369 additions and 228 deletions
+13 -1
View File
@@ -29,7 +29,7 @@ use Snowflake\Event;
/**
* Class BaseApplication
* @package BeReborn\Base
* @package Snowflake\Snowflake\Base
* @property $json
* @property Annotation $annotation
* @property Event $event
@@ -38,6 +38,7 @@ use Snowflake\Event;
* @property \Snowflake\Pool\Pool $pool
* @property Server $servers
* @property Connection $connections
* @property Logger $logger
*/
abstract class BaseApplication extends Service
{
@@ -192,6 +193,17 @@ abstract class BaseApplication extends Service
return current($this->getLocalIps());
}
/**
* @return Logger
* @throws ComponentException
*/
public function getLogger(): Logger
{
return $this->get('logger');
}
/**
* @param $ip
* @return bool