- Fixed a bug within extension checking

This commit is contained in:
Dave Mc Nicoll 2023-11-01 11:28:22 -04:00
parent 0ad57c87df
commit 1a6d730298
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class ApplicationStrategy extends Strategy\ApplicationStrategy {
public function throw404(ServerRequestInterface $request) : ResponseInterface 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(); $params = $request->getServerParams();
$scpName = basename(explode('?', $params['REQUEST_URI'] ?? "", 2)[0]); $scpName = basename(explode('?', $params['REQUEST_URI'] ?? "", 2)[0]);