<?php \Components\Environment::push(\Components\Environment::create()->setUriComponents('/'));
/** * Bootstrap Components Runtime * * @author evalcode.net */ function runtime_bootstrap() { if (isset($GLOBALS['components_runtime_bootstrap_invoked'])) { return; } $GLOBALS['components_runtime_bootstrap_invoked'] = microtime(true); if (is_file($file = COMPONENTS_PATH_APP . '/config/environment.php')) { @(include_once $file); } else { @(include_once dirname(__DIR__) . '/config/environment.php'); } \Components\Runtime_Classloader::push(new \Components\Classloader_Components(\Components\Environment::pathComponents())); \Components\Runtime::create(); }
<?php \Components\Environment::push(\Components\Environment::create()->setPathWeb(COMPONENTS_PATH_APP . '/web')->setPathResource(COMPONENTS_PATH_APP . '/web/media')->setUriResource('/media'));