} //v priecinku vendor mame cudzie riesenia if ($tryVendor) { $path = BASE_PATH . DS . 'vendor'; foreach ($parts as $i => $part) { $path .= DS . $part; if ($i == $cnt) { $path .= '.php'; } } if (file_exists($path)) { include_once $path; } } if (class_exists("\\core\\Debug")) { \core\Debug::files($path); } }); $workspace = false; if (IS_CLI) { //console if (empty($argv[1]) || !in_array($argv[1], array('production', 'development'))) { exit('Wrong environment definition, check shell variable "env"'); } $workspace = $argv[1] == 'development'; // $_SERVER['SERVER_PORT'] = 80; // $_SERVER['HTTP_HOST'] = $workspace ? '' : ''; set_time_limit(0); } else { //website if (isset($_SERVER['HTTP_HOST'])) {