Slim API
This commit is contained in:
11
setup/api/config.php
Normal file
11
setup/api/config.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
use Psr\Container\ContainerInterface as Container;
|
||||
|
||||
return [
|
||||
'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