add composer module support (build 449, 2.7.2)

This commit is contained in:
crazywhalecc
2022-03-21 01:24:07 +08:00
parent c5a6f1fea4
commit b3089c1bba
5 changed files with 96 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ use ZM\Console\Console;
use ZM\Exception\AnnotationException;
use ZM\Utils\Manager\RouteManager;
use ZM\Utils\ZMUtil;
use function server;
class AnnotationParser
{
@@ -211,6 +212,9 @@ class AnnotationParser
*/
public function addRegisterPath($path, $indoor_name)
{
if (server()->worker_id === 0) {
Console::verbose('Add register path: ' . $path . ' => ' . $indoor_name);
}
$this->path_list[] = [$path, $indoor_name];
}