From 1a6d73029895bd670e73e4205f496f201a906676 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Wed, 1 Nov 2023 11:28:22 -0400 Subject: [PATCH] - Fixed a bug within extension checking --- src/ApplicationStrategy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApplicationStrategy.php b/src/ApplicationStrategy.php index 6288c45..6b70f5a 100644 --- a/src/ApplicationStrategy.php +++ b/src/ApplicationStrategy.php @@ -43,7 +43,7 @@ class ApplicationStrategy extends Strategy\ApplicationStrategy { public function throw404(ServerRequestInterface $request) : ResponseInterface { - if ( getenv('DEBUG') && class_exists(\Picea\Asset\Asset::class) ) { + if ( getenv('DEBUG') && $this->di->has(\Picea\Asset\Asset::class) ) { $params = $request->getServerParams(); $scpName = basename(explode('?', $params['REQUEST_URI'] ?? "", 2)[0]);