API Base App
This commit is contained in:
21
api/setup/settings/02_folders.php
Normal file
21
api/setup/settings/02_folders.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
return [
|
||||
'base_folder' => function() {
|
||||
return dirname(__FILE__, 3);
|
||||
},
|
||||
'resources_folder' => function(ContainerInterface $container) {
|
||||
return implode(DIRECTORY_SEPARATOR, [
|
||||
$container->get('base_folder'),
|
||||
'resources'
|
||||
]);
|
||||
},
|
||||
'routes_folder' => function(ContainerInterface $container) {
|
||||
return implode(DIRECTORY_SEPARATOR, [
|
||||
$container->get('resources_folder'),
|
||||
'routes'
|
||||
]);
|
||||
},
|
||||
'attachments_folder' => $_ENV['ATTACHMENTS_FOLDER'],
|
||||
];
|
Reference in New Issue
Block a user