- Reworked ApplicationStrategy to allows better overridding of it's classes
This commit is contained in:
1 parent
156defddc9
commit
7a48d707e0
6 files changed
+118
-45
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Lean\ApplicationStrategy\{ ThrowableHandler, ThrowableHandlerInterface, NotFoundDecoratorInterface, NotFoundDecorator };
|
||||
use function DI\autowire, DI\create, DI\get;
|
||||
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
@@ -14,4 +15,6 @@ return [
|
||||
},
|
||||
|
||||
EmitterInterface::class => create(SapiEmitter::class),
|
||||
ThrowableHandlerInterface::class => autowire(ThrowableHandler::class),
|
||||
NotFoundDecoratorInterface::class => autowire(NotFoundDecorator::class),
|
||||
];
|
||||
Reference in new issue
Block a user