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]);