예제 #1
0
파일: symfony.php 프로젝트: taryono/school
     require_once $sf_symfony_lib_dir . '/debug/sfTimer.class.php';
 }
 // load base settings
 include $configCache->checkConfig($sf_app_config_dir_name . '/settings.yml');
 if (sfConfig::get('sf_logging_enabled', true)) {
     include $configCache->checkConfig($sf_app_config_dir_name . '/logging.yml');
 }
 if ($file = $configCache->checkConfig($sf_app_config_dir_name . '/app.yml', true)) {
     include $file;
 }
 if (sfConfig::get('sf_i18n')) {
     include $configCache->checkConfig($sf_app_config_dir_name . '/i18n.yml');
 }
 // add autoloading callables
 foreach ((array) sfConfig::get('sf_autoloading_functions', array()) as $callable) {
     sfCore::addAutoloadCallable($callable);
 }
 // error settings
 ini_set('display_errors', $sf_debug ? 'on' : 'off');
 error_reporting(sfConfig::get('sf_error_reporting'));
 // create bootstrap file for next time
 if (!sfConfig::get('sf_in_bootstrap') && !$sf_debug && !sfConfig::get('sf_test')) {
     $configCache->checkConfig($sf_app_config_dir_name . '/bootstrap_compile.yml');
 }
 // required core classes for the framework
 // create a temp var to avoid substitution during compilation
 if (!$sf_debug && !sfConfig::get('sf_test')) {
     $core_classes = $sf_app_config_dir_name . '/core_compile.yml';
     $configCache->import($core_classes, false);
 }
 $configCache->import($sf_app_config_dir_name . '/php.yml', false);