Current File : /home/pacjaorg/www/km/templates/yootheme/bootstrap.php |
<?php
namespace YOOtheme;
$root = __DIR__;
$cache = "{$root}/cache";
$loader = require "{$root}/vendor/autoload.php";
if (!is_dir($cache)) {
mkdir($cache);
}
Path::setAlias('~theme', $root);
Path::setAlias('~yootheme', "{$root}/packages");
Path::setAlias('~assets/leaflet', "{$root}/vendor/assets/leaflet");
Path::setAlias('~assets/uikit', "{$root}/vendor/assets/uikit");
$app = Application::getInstance($cache);
$app->load('~theme/packages/{application,encryption,image,translation,http{-message,-server},view{,-metadata}}/bootstrap.php');
return $app;