Version nueva
This commit is contained in:
42
setup/web/config.php
Normal file
42
setup/web/config.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
use Psr\Container\ContainerInterface as Container;
|
||||
|
||||
return [
|
||||
'folders' => DI\decorate(function($prev, Container $container) {
|
||||
$arr = (array) $prev;
|
||||
$arr['templates'] = implode(DIRECTORY_SEPARATOR, [
|
||||
$arr['resources'],
|
||||
'views'
|
||||
]);
|
||||
$arr['cache'] = implode(DIRECTORY_SEPARATOR, [
|
||||
$arr['base'],
|
||||
'cache'
|
||||
]);
|
||||
$arr['assets'] = implode(DIRECTORY_SEPARATOR, [
|
||||
$arr['resources'],
|
||||
'assets'
|
||||
]);
|
||||
return (object) $arr;
|
||||
}),
|
||||
'urls' => function(Container $container) {
|
||||
$arr = ['base' => $container->get('base_url')];
|
||||
$arr['assets'] = implode('/', [
|
||||
$arr['base'],
|
||||
'assets'
|
||||
]);
|
||||
$arr['styles'] = implode('/', [
|
||||
$arr['assets'],
|
||||
'styles'
|
||||
]);
|
||||
$arr['images'] = implode('/', [
|
||||
$arr['assets'],
|
||||
'images'
|
||||
]);
|
||||
$arr['scripts'] = implode('/', [
|
||||
$arr['assets'],
|
||||
'scripts'
|
||||
]);
|
||||
return (object) $arr;
|
||||
},
|
||||
'language' => 'en'
|
||||
];
|
Reference in New Issue
Block a user