19 lines
437 B
PHP
19 lines
437 B
PHP
<?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;
|
|
})
|
|
];
|