- Added MethodNotAllowed interface
This commit is contained in:
1 parent
3281713534
commit
5ea4e70988
2 files changed
+8
-1
No files matched your search
@@ -11,7 +11,7 @@ use Storage\Cookie,
|
|||||||
Storage\Session,
|
Storage\Session,
|
||||||
Storage\SessionMiddleware;
|
Storage\SessionMiddleware;
|
||||||
|
|
||||||
use function DI\autowire, DI\create, DI\get;
|
use function DI\{ autowire, create, get };
|
||||||
|
|
||||||
return [
|
return [
|
||||||
ServerRequestInterface::class => function ($c) {
|
ServerRequestInterface::class => function ($c) {
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ class ApplicationStrategy extends Strategy\ApplicationStrategy {
|
|||||||
return $this->getContainer()->has(MethodNotAllowedInterface::class) ? $this->getContainer()->get(MethodNotAllowedInterface::class) : parent::getMethodNotAllowedDecorator($exception);
|
return $this->getContainer()->has(MethodNotAllowedInterface::class) ? $this->getContainer()->get(MethodNotAllowedInterface::class) : parent::getMethodNotAllowedDecorator($exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
/*<<<<<<< HEAD
|
/*<<<<<<< HEAD
|
||||||
/*=======
|
/*=======
|
||||||
public function getMethodNotAllowedDecorator(MethodNotAllowedException $exception): MiddlewareInterface
|
public function getMethodNotAllowedDecorator(MethodNotAllowedException $exception): MiddlewareInterface
|
||||||
@@ -71,4 +72,10 @@ class ApplicationStrategy extends Strategy\ApplicationStrategy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
>>>>>>> af8b686 (- WIP on ulmus-user mechanics updates)*/
|
>>>>>>> af8b686 (- WIP on ulmus-user mechanics updates)*/
|
||||||
|
=======
|
||||||
|
public function getMethodNotAllowedDecorator(MethodNotAllowedException $exception): MiddlewareInterface
|
||||||
|
{
|
||||||
|
return $this->getContainer()->has(MethodNotAllowedInterface::class) ? $this->getContainer()->get(MethodNotAllowedInterface::class) : parent::getMethodNotAllowedDecorator($exception);
|
||||||
|
}
|
||||||
|
>>>>>>> c6e9bb6 (- Added MethodNotAllowed interface)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user