config
This commit is contained in:
14
app_old/setup/api/config.php
Normal file
14
app_old/setup/api/config.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
use Psr\Container\ContainerInterface as Container;
|
||||
|
||||
return [
|
||||
'base_url' => DI\decorate(function($prev, Container $c) {
|
||||
return $prev . '/api';
|
||||
}),
|
||||
'locations' => DI\decorate(function($prev, Container $c) {
|
||||
$arr = (array) $prev;
|
||||
$arr['cache'] = $prev->base . '/cache';
|
||||
$arr['views'] = $prev->resources . '/views';
|
||||
return (object) $arr;
|
||||
})
|
||||
];
|
Reference in New Issue
Block a user