App 0.1.0

This commit is contained in:
2021-03-15 17:42:56 -03:00
parent 0f9f0e3f7f
commit 048718b552
11 changed files with 289 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?php
use Psr\Container\ContainerInterface as Container;
return [
'locations' => DI\decorate(function($prev, Container $container) {
$arr = (array) $prev;
$arr['base'] = dirname(__DIR__, 2);
$arr['resources'] = implode(DIRECTORY_SEPARATOR, [
$arr['base'],
'resources'
]);
$arr['routes'] = implode(DIRECTORY_SEPARATOR, [
$arr['resources'],
'routes'
]);
return (object) $arr;
})
];