- Added the application feature - a big reason why Lean was created in the first place.

- Began moving some repetitive parts from projects to projects into lean
This commit is contained in:
mcndave committed 2020-12-07 14:11:29 +00:00
1 parent 4bd68a74f8
commit bdb9f7f732
13 files changed
+571 -2

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<?php
use function DI\autowire, DI\create, DI\get;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\ServerRequestFactory;
use Zend\HttpHandlerRunner\Emitter\EmitterInterface,
Zend\HttpHandlerRunner\Emitter\SapiEmitter;
return [
ServerRequestInterface::class => function ($c) {
return ServerRequestFactory::fromGlobals(
$_SERVER, $_GET, $_POST, $_COOKIE, $_FILES
);
},
EmitterInterface::class => create(SapiEmitter::class),
];