diff --git a/app/Http/Controller/IndexController.php b/app/Http/Controller/IndexController.php index 1768d52..0c14ecd 100644 --- a/app/Http/Controller/IndexController.php +++ b/app/Http/Controller/IndexController.php @@ -12,7 +12,7 @@ namespace App\Http\Controller; use App\Http\Response; -use Next\Foundation\Aop\Attribute\Inject; +use Next\Foundation\Di\Attribute\Inject; use Psr\Container\ContainerInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; diff --git a/app/Listener/DatabaseQueryListener.php b/app/Listener/DatabaseQueryListener.php index 0a76943..4894916 100644 --- a/app/Listener/DatabaseQueryListener.php +++ b/app/Listener/DatabaseQueryListener.php @@ -13,8 +13,10 @@ use Next\Database\Event\QueryExecuted; use Next\Event\EventListener; +use Next\Foundation\Event\Attribute\Listen; use Psr\Log\LoggerInterface; +#[Listen] class DatabaseQueryListener extends EventListener { public function __construct(