This commit is contained in:
2021-03-29 16:27:12 +08:00
parent c1d37ce826
commit 4442397aa9
10 changed files with 25 additions and 16 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ declare(strict_types=1);
namespace HttpServer\Route;
use Annotation\Aspect;
use Closure;
use Database\InjectProperty;
use Exception;
use HttpServer\Abstracts\HttpService;
use HttpServer\Http\Request;
@@ -57,7 +59,7 @@ class Router extends HttpService implements RouterInterface
* @throws ConfigException
* 初始化函数路径
*/
public function init()
#[Aspect(InjectProperty::class)] public function init()
{
$this->dir = Config::get('http.namespace', false, $this->dir);
}