1 | <?php |
||
12 | class ConfigProvider |
||
13 | { |
||
14 | /** |
||
15 | * Returns the configuration array |
||
16 | * |
||
17 | * To add a bit of a structure, each section is defined in a separate |
||
18 | * method which returns an array with its configuration. |
||
19 | * |
||
20 | * @return array |
||
21 | */ |
||
22 | 3 | public function __invoke() |
|
29 | |||
30 | /** |
||
31 | * Returns the container dependencies |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | 3 | public function getDependencies() : array |
|
36 | { |
||
37 | return [ |
||
38 | 2 | 'factories' => [ |
|
39 | 1 | Generator::class => GeneratorFactory::class, |
|
40 | Middleware\ApiSpecification::class => Middleware\ApiSpecificationFactory::class, |
||
41 | Middleware\SwaggerUIAssets::class => InvokableFactory::class, |
||
42 | Middleware\SwaggerUI::class => Middleware\SwaggerUIFactory::class, |
||
43 | ], |
||
44 | ]; |
||
45 | } |
||
46 | |||
47 | 3 | public function getModuleConfig() : array |
|
61 | } |
||
62 |