2022-12-20
This commit is contained in:
@ -1,2 +1,4 @@
|
||||
<?php
|
||||
$app->add($app->getContainer()->get(Zeuxisoo\Whoops\Slim\WhoopsMiddleware::class));
|
||||
$errorMiddleware = $app->addErrorMiddleware(true, true, true);
|
||||
$errorMiddleware->setDefaultErrorHandler($app->getContainer()->get(\Common\Middleware\Error::class));
|
||||
|
@ -36,5 +36,11 @@ return [
|
||||
'python' => 'http://python:5000'
|
||||
];
|
||||
return (object) $arr;
|
||||
},
|
||||
'documentation' => function(Container $container) {
|
||||
return \ProVM\Implement\Path::fromArray([
|
||||
$container->get('folders')->documentation,
|
||||
'base.json'
|
||||
]);
|
||||
}
|
||||
];
|
||||
|
@ -10,5 +10,8 @@ return [
|
||||
$settings->user['password'],
|
||||
$settings->name
|
||||
);
|
||||
},
|
||||
\ProVM\Concept\Factory\Model::class => function(ContainerInterface $container) {
|
||||
return new \ProVM\Implement\Factory\Model($container);
|
||||
}
|
||||
];
|
||||
|
8
api/setup/setups/03_documenter.php
Normal file
8
api/setup/setups/03_documenter.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
return [
|
||||
\Common\Service\Documenter::class => function(ContainerInterface $container) {
|
||||
return new \Common\Service\Documenter($container->get('documentation'));
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user