- Fixed a bug within extension checking

This commit is contained in:
Dave Mc Nicoll committed 2023-11-01 11:28:22 -04:00
1 parent 0ad57c87df
commit 1a6d730298
1 file changed
+1 -1
+1 -1
View File
@@ -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]);