- Added a new ArrayCollection
- Changed Action attribute and transformed it into an abstract class
This commit is contained in:
1 parent
0443f5a811
commit
9b360c4010
18 files changed
+311
-86
No files matched your search
@@ -2,6 +2,8 @@
|
||||
|
||||
use Ulmus\ConnectionAdapter;
|
||||
|
||||
use function DI\{ get, env };
|
||||
|
||||
define('LEAN_API_PROJECT_PATH', $path = dirname(__DIR__, 2));
|
||||
|
||||
return [
|
||||
@@ -56,6 +58,11 @@ return [
|
||||
return $adapter;
|
||||
},
|
||||
|
||||
'app.middlewares' => \DI\add([
|
||||
Lean\Api\Middleware\CORS::class,
|
||||
]),
|
||||
|
||||
Lean\Api\Lib\RenderCORS::class => DI\create(Lean\Api\Lib\RenderCORS::class)->constructor(get(\Psr\Http\Message\ServerRequestInterface::class), env('LEAN_API_CORS_ORIGIN', '*')),
|
||||
Lean\ApplicationStrategy\NotFoundDecoratorInterface::class => DI\autowire(Lean\Api\ApplicationStrategy\NotFoundDecorator::class),
|
||||
Lean\ApplicationStrategy\MethodNotAllowedInterface::class => DI\autowire(Lean\Api\ApplicationStrategy\MethodNotAllowedDecorator::class),
|
||||
Lean\Api\Factory\MessageFactoryInterface::class => DI\autowire(Lean\Api\Lib\Message::class),
|
||||
|
||||
Reference in new issue
Block a user