- Added MethodNotAllowed interface

This commit is contained in:
mcndave authored and Dave Mc Nicoll committed 2026-05-21 15:16:58 +00:00
1 parent fda052d2f3
commit 5bb5e8ce61
2 files changed
+12 -9

No files matched your search

+5
View File
@@ -39,4 +39,9 @@ class ApplicationStrategy extends Strategy\ApplicationStrategy {
{
return $this->getContainer()->has(MethodNotAllowedInterface::class) ? $this->getContainer()->get(MethodNotAllowedInterface::class) : parent::getMethodNotAllowedDecorator($exception);
}
public function getMethodNotAllowedDecorator(MethodNotAllowedException $exception): MiddlewareInterface
{
return $this->getContainer()->has(MethodNotAllowedInterface::class) ? $this->getContainer()->get(MethodNotAllowedInterface::class) : parent::getMethodNotAllowedDecorator($exception);
}
}