41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?php
|
|
use Psr\Container\ContainerInterface as Container;
|
|
|
|
return [
|
|
'folders' => function(Container $c) {
|
|
return \ProVM\Implement\Collection::fromArray([
|
|
'base' => dirname(__DIR__, 2),
|
|
'resources' => function(\Psr\Collection\CollectionInterface $collection) {
|
|
return implode(DIRECTORY_SEPARATOR, [
|
|
$collection['base'],
|
|
'resources'
|
|
]);
|
|
},
|
|
'documentation' => function(\Psr\Collection\CollectionInterface $collection) {
|
|
return implode(DIRECTORY_SEPARATOR, [
|
|
$collection['resources'],
|
|
'documentation'
|
|
]);
|
|
},
|
|
'routes' => function(\Psr\Collection\CollectionInterface $collection) {
|
|
return implode(DIRECTORY_SEPARATOR, [
|
|
$collection['resources'],
|
|
'routes'
|
|
]);
|
|
},
|
|
'public' => function(\Psr\Collection\CollectionInterface $collection) {
|
|
return implode(DIRECTORY_SEPARATOR, [
|
|
$collection['base'],
|
|
'public'
|
|
]);
|
|
}
|
|
]);
|
|
},
|
|
'urls' => function(Container $c) {
|
|
$arr = [
|
|
'python' => 'http://python:5000'
|
|
];
|
|
return (object) $arr;
|
|
}
|
|
];
|