This commit is contained in:
2021-04-08 11:24:31 +08:00
parent 5e4f5d4b6e
commit 0affc404fd
2 changed files with 23 additions and 4 deletions
+17 -2
View File
@@ -80,6 +80,22 @@ if (!function_exists('annotation')) {
}
if (!function_exists('scan_directory')) {
/**
* @param $dir
* @param $namespace
* @throws Exception
*/
function scan_directory($dir, $namespace)
{
\annotation()->read($dir, $namespace);
}
}
if (!function_exists('swoole')) {
@@ -312,8 +328,7 @@ if (!function_exists('redis')) {
/**
* @param string $messages
* @param string $category
* @return \Snowflake\Cache\Redis|Redis
* @throws Exception
*/
function redis(): \Snowflake\Cache\Redis|Redis