X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fconfig-global.php;h=bf734267fea51f73d3ec970745bff6c3d55747dd;hb=974964e500f24aa7695dc4ec555dc659f78e40e8;hp=ba2385647c662aa6ab6e51c2628af1b62955dc2d;hpb=9038ac3be74ac32db35adceb83f40170ac123e4f;p=core.git diff --git a/framework/config-global.php b/framework/config-global.php index ba238564..bf734267 100644 --- a/framework/config-global.php +++ b/framework/config-global.php @@ -39,7 +39,7 @@ $cfg->setConfigEntry('root_base_path', ApplicationEntryPoint::getRootPath() . DI $cfg->setConfigEntry('framework_base_path', ApplicationEntryPoint::detectFrameworkPath()); // CFG: BASE-URL -$cfg->setConfigEntry('base_url', $cfg->detectBaseUrl()); +$cfg->setConfigEntry('base_url', FrameworkBootstrap::detectBaseUrl()); // CFG: DATABASE-TYPE $cfg->setConfigEntry('database_type', 'local_file_database'); @@ -47,12 +47,8 @@ $cfg->setConfigEntry('database_type', 'local_file_database'); // CFG: LOCAL-DATABASE-PATH $cfg->setConfigEntry('local_database_path', $cfg->getConfigEntry('root_base_path') . 'db/'); -// CFG: TIME-ZONE -$cfg->setDefaultTimezone('Europe/Berlin'); - -// CFG: MAGIC-QUOTES-RUNTIME -// @DEPRECATED As PHP is deprecating this -$cfg->setMagicQuotesRuntime(false); +// Default timezone +FrameworkBootstrap::setDefaultTimezone('Europe/Berlin'); // CFG: CLASS-PREFIX $cfg->setConfigEntry('class_prefix', 'class_'); @@ -298,13 +294,13 @@ $cfg->setConfigEntry('guest_class', 'CoreFramework\User\Guest\Guest'); $cfg->setConfigEntry('cookie_expire', (60*60*2)); // Two hours! // CFG: COOKIE-PATH -$cfg->setConfigEntry('cookie_path', $cfg->detectScriptPath() . DIRECTORY_SEPARATOR); +$cfg->setConfigEntry('cookie_path', FrameworkBootstrap::detectScriptPath() . DIRECTORY_SEPARATOR); // CFG: COOKIE-DOMAIN -$cfg->setConfigEntry('cookie_domain', $cfg->detectDomain()); // Is mostly the same... +$cfg->setConfigEntry('cookie_domain', FrameworkBootstrap::detectDomain()); // Is mostly the same... // CFG: COOKIE-SSL -$cfg->setConfigEntry('cookie_ssl', $cfg->isHttpSecured()); +$cfg->setConfigEntry('cookie_ssl', FrameworkBootstrap::isHttpSecured()); // CFG: CRYPT-FIXED-SALT $cfg->setConfigEntry('crypt_fixed_salt', 'N'); @@ -322,7 +318,7 @@ $cfg->setConfigEntry('product_install_mode', 'debug'); $cfg->setConfigEntry('decimals', 3); // CFG: MENU-STACKER-CLASS -$cfg->setConfigEntry('menu_stacker_class', 'CoreFramework\Stacker\File\FiLoStacker'); +$cfg->setConfigEntry('menu_stacker_class', 'CoreFramework\Stacker\FiLoStacker'); // CFG: STACKER-GENERIC-MAX-SIZE $cfg->setConfigEntry('stacker_generic_max_size', 100); @@ -432,9 +428,6 @@ $cfg->setConfigEntry('task_idle_loop_max_runs', 0); // CFG: IDLE-LOOP-TIME (5 milli seconds) $cfg->setConfigEntry('idle_loop_time', 5); -// CFG: SHUTDOWN-TASK-VISITOR-CLASS -$cfg->setConfigEntry('shutdown_task_visitor_class', 'CoreFramework\Visitor\Task\Shutdown\ShutdownTaskVisitor'); - // CFG: DEFAULT-IMAGE-COMMAND $cfg->setConfigEntry('default_image_command', 'build'); @@ -465,5 +458,8 @@ $cfg->setConfigEntry('extension_uuid_loaded', false); // CFG: REGISTRY-ITERATOR-CLASS $cfg->setConfigEntry('registry_iterator_class', 'CoreFramework\Iterator\Registry\RegistryIterator'); +// CFG: QUIET-DNS-RESOLVER +$cfg->setConfigEntry('quiet_dns_resolver', FALSE); + // Remove config from this name-space. Don't worry, no configuration is cleared. unset($cfg);