Base setup

This commit is contained in:
2020-12-15 17:45:11 -03:00
parent 559d287a3d
commit 736eb72254
6 changed files with 146 additions and 0 deletions

20
setup/web/setup.php Normal file
View File

@ -0,0 +1,20 @@
<?php
use Psr\Container\ContainerInterface as Container;
return [
ProVM\Common\Alias\View::class => function(Container $c) {
if (!file_exists($c->get('folders')->cache)) {
mkdir($c->get('folders')->cache);
chmod($c->get('folders')->cache, 777);
}
return new ProVM\Common\Definition\View(
$c->get('folders')->templates,
$c->get('folders')->cache,
null,
[
'urls' => $c->get('urls'),
'assets' => $c->get('assets')
]
);
}
];