2022-12-20

This commit is contained in:
2022-12-20 14:13:05 -03:00
parent 85fef16b27
commit 0f3febc00d
87 changed files with 2525 additions and 419 deletions

View File

@ -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));

View File

@ -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'
]);
}
];

View File

@ -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);
}
];

View 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'));
}
];