source: pro-bachkim-filespace/sourcecode/api.violet.vn/www/cache/platform/prod/config/config_bootstrap_compile.yml.php

Last change on this file was 19, checked in by dungnv, 11 years ago
File size: 8.0 KB
Line 
1<?php
2// auto-generated by sfCompileConfigHandler
3// date: 2014/05/07 16:15:25
4
5
6$sf_symfony_lib_dir = sfConfig::get('sf_symfony_lib_dir');
7if (!sfConfig::get('sf_in_bootstrap'))
8{
9    require_once($sf_symfony_lib_dir.'/util/sfYaml.class.php');
10    require_once($sf_symfony_lib_dir.'/cache/sfCache.class.php');
11  require_once($sf_symfony_lib_dir.'/cache/sfFileCache.class.php');
12    require_once($sf_symfony_lib_dir.'/config/sfConfigCache.class.php');
13  require_once($sf_symfony_lib_dir.'/config/sfConfigHandler.class.php');
14  require_once($sf_symfony_lib_dir.'/config/sfYamlConfigHandler.class.php');
15  require_once($sf_symfony_lib_dir.'/config/sfAutoloadConfigHandler.class.php');
16  require_once($sf_symfony_lib_dir.'/config/sfRootConfigHandler.class.php');
17  require_once($sf_symfony_lib_dir.'/config/sfLoader.class.php');
18    require_once($sf_symfony_lib_dir.'/exception/sfException.class.php');
19  require_once($sf_symfony_lib_dir.'/exception/sfAutoloadException.class.php');
20  require_once($sf_symfony_lib_dir.'/exception/sfCacheException.class.php');
21  require_once($sf_symfony_lib_dir.'/exception/sfConfigurationException.class.php');
22  require_once($sf_symfony_lib_dir.'/exception/sfParseException.class.php');
23    require_once($sf_symfony_lib_dir.'/util/sfParameterHolder.class.php');
24}
25else
26{
27  require_once($sf_symfony_lib_dir.'/config/sfConfigCache.class.php');
28}
29sfCore::initAutoload();
30try
31{
32  $configCache = sfConfigCache::getInstance();
33    if (function_exists('date_default_timezone_get'))
34  {
35    if ($default_timezone = sfConfig::get('sf_default_timezone'))
36    {
37      date_default_timezone_set($default_timezone);
38    }
39    else if (sfConfig::get('sf_force_default_timezone', true))
40    {
41      date_default_timezone_set(@date_default_timezone_get());
42    }
43  }
44    $sf_app_config_dir_name = sfConfig::get('sf_app_config_dir_name');
45  $sf_debug = sfConfig::get('sf_debug');
46    if ($sf_debug)
47  {
48    require_once($sf_symfony_lib_dir.'/debug/sfTimerManager.class.php');
49    require_once($sf_symfony_lib_dir.'/debug/sfTimer.class.php');
50  }
51    // 'config/settings.yml' config file
52// auto-generated by sfDefineEnvironmentConfigHandler
53// date: 2014/05/07 16:15:25
54sfConfig::add(array(
55  'sf_default_module' => 'default',
56  'sf_default_action' => 'index',
57  'sf_error_404_module' => 'default',
58  'sf_error_404_action' => 'error404',
59  'sf_login_module' => 'default',
60  'sf_login_action' => 'login',
61  'sf_secure_module' => 'default',
62  'sf_secure_action' => 'secure',
63  'sf_module_disabled_module' => 'default',
64  'sf_module_disabled_action' => 'disabled',
65  'sf_unavailable_module' => 'default',
66  'sf_unavailable_action' => 'unavailable',
67  'sf_available' => true,
68  'sf_use_database' => true,
69  'sf_use_security' => true,
70  'sf_use_flash' => true,
71  'sf_i18n' => false,
72  'sf_check_symfony_version' => false,
73  'sf_use_process_cache' => true,
74  'sf_compressed' => false,
75  'sf_check_lock' => false,
76  'sf_escaping_strategy' => 'bc',
77  'sf_escaping_method' => 'ESC_ENTITIES',
78  'sf_suffix' => '.',
79  'sf_no_script_name' => false,
80  'sf_validation_error_prefix' => ' &darr;&nbsp;',
81  'sf_validation_error_suffix' => ' &nbsp;&darr;',
82  'sf_validation_error_class' => 'form_error',
83  'sf_validation_error_id_prefix' => 'error_for_',
84  'sf_cache' => false,
85  'sf_etag' => true,
86  'sf_lazy_cache_key' => true,
87  'sf_web_debug' => false,
88  'sf_error_reporting' => 341,
89  'sf_rich_text_js_dir' => 'js/tiny_mce',
90  'sf_prototype_web_dir' => '/sf/prototype',
91  'sf_admin_web_dir' => '/sf/sf_admin',
92  'sf_web_debug_web_dir' => '/sf/sf_web_debug',
93  'sf_calendar_web_dir' => '/sf/calendar',
94  'sf_standard_helpers' => array (
95  0 => 'Partial',
96  1 => 'Cache',
97  2 => 'Form',
98),
99  'sf_enabled_modules' => array (
100  0 => 'default',
101),
102  'sf_charset' => 'utf-8',
103  'sf_strip_comments' => true,
104  'sf_autoloading_functions' => NULL,
105  'sf_timeout' => 1800,
106  'sf_max_forwards' => 5,
107  'sf_path_info_array' => 'SERVER',
108  'sf_path_info_key' => 'PATH_INFO',
109  'sf_url_format' => 'PATH',
110  'sf_orm' => 'propel',
111));
112  if (sfConfig::get('sf_logging_enabled', true))
113  {
114    // 'config/logging.yml' config file
115// auto-generated by sfDefineEnvironmentConfigHandler
116// date: 2014/05/07 16:15:25
117sfConfig::add(array(
118  'sf_logging_enabled' => false,
119  'sf_logging_level' => 'err',
120  'sf_logging_rotate' => true,
121  'sf_logging_period' => 7,
122  'sf_logging_history' => 10,
123  'sf_logging_purge' => false,
124));
125  }
126  if ($file = $configCache->checkConfig($sf_app_config_dir_name.'/app.yml', true))
127  {
128    include($file);
129  }
130  if (sfConfig::get('sf_i18n'))
131  {
132    // 'config/i18n.yml' config file
133// auto-generated by sfDefineEnvironmentConfigHandler
134// date: 2014/05/07 16:15:25
135sfConfig::add(array(
136  'sf_i18n_default_culture' => 'en',
137  'sf_i18n_source' => 'XLIFF',
138  'sf_i18n_debug' => false,
139  'sf_i18n_cache' => true,
140  'sf_i18n_untranslated_prefix' => '[T]',
141  'sf_i18n_untranslated_suffix' => '[/T]',
142));
143  }
144    foreach ((array) sfConfig::get('sf_autoloading_functions', array()) as $callable)
145  {
146    sfCore::addAutoloadCallable($callable);
147  }
148    ini_set('display_errors', $sf_debug ? 'on' : 'off');
149  error_reporting(sfConfig::get('sf_error_reporting'));
150    if (!sfConfig::get('sf_in_bootstrap') && !$sf_debug && !sfConfig::get('sf_test'))
151  {
152    $configCache->checkConfig($sf_app_config_dir_name.'/bootstrap_compile.yml');
153  }
154      if (!$sf_debug && !sfConfig::get('sf_test'))
155  {
156    $core_classes = $sf_app_config_dir_name.'/core_compile.yml';
157    $configCache->import($core_classes, false);
158  }
159  // 'config/php.yml' config file
160// auto-generated by sfPhpConfigHandler
161// date: 2014/05/07 16:15:25
162ini_set('magic_quotes_runtime', '');
163ini_set('log_errors', '1');
164ini_set('arg_separator.output', '&amp;');
165if (ini_get('magic_quotes_gpc') != false)
166{
167  sfLogger::getInstance()->warning('{sfPhpConfigHandler} php.ini "magic_quotes_gpc" key is better set to "false" (current value is "\'\'" - php.ini location: "/etc/php.ini").');
168}
169if (ini_get('register_globals') != false)
170{
171  sfLogger::getInstance()->warning('{sfPhpConfigHandler} php.ini "register_globals" key is better set to "false" (current value is "\'\'" - php.ini location: "/etc/php.ini").');
172}
173if (ini_get('session.auto_start') != false)
174{
175  sfLogger::getInstance()->warning('{sfPhpConfigHandler} php.ini "session.auto_start" key is better set to "false" (current value is "\'0\'" - php.ini location: "/etc/php.ini").');
176}
177  // 'config/routing.yml' config file
178// auto-generated by sfRoutingConfigHandler
179// date: 2014/05/07 16:15:25
180$routes = sfRouting::getInstance();
181$routes->setRoutes(
182array (
183  'homepage' =>
184  array (
185    0 => '/',
186    1 => '/^[\\/]*$/',
187    2 =>
188    array (
189    ),
190    3 =>
191    array (
192    ),
193    4 =>
194    array (
195      'module' => 'default',
196      'action' => 'index',
197    ),
198    5 =>
199    array (
200    ),
201    6 => '',
202  ),
203  'default_symfony' =>
204  array (
205    0 => '/symfony/:action/*',
206    1 => '#^/symfony(?:\\/([^\\/]+))?(?:\\/(.*))?$#',
207    2 =>
208    array (
209      0 => 'action',
210    ),
211    3 =>
212    array (
213      'action' => 1,
214    ),
215    4 =>
216    array (
217      'module' => 'default',
218    ),
219    5 =>
220    array (
221    ),
222    6 => '',
223  ),
224  'default_index' =>
225  array (
226    0 => '/:module',
227    1 => '#^(?:\\/([^\\/]+))?$#',
228    2 =>
229    array (
230      0 => 'module',
231    ),
232    3 =>
233    array (
234      'module' => 1,
235    ),
236    4 =>
237    array (
238      'action' => 'index',
239    ),
240    5 =>
241    array (
242    ),
243    6 => '',
244  ),
245  'default' =>
246  array (
247    0 => '/:module/:action/*',
248    1 => '#^(?:\\/([^\\/]+))?(?:\\/([^\\/]+))?(?:\\/(.*))?$#',
249    2 =>
250    array (
251      0 => 'module',
252      1 => 'action',
253    ),
254    3 =>
255    array (
256      'module' => 1,
257      'action' => 1,
258    ),
259    4 =>
260    array (
261    ),
262    5 =>
263    array (
264    ),
265    6 => '',
266  ),
267)
268);
269    sfLoader::loadPluginConfig();
270    ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : '');
271}
272catch (sfException $e)
273{
274  $e->printStackTrace();
275}
276catch (Exception $e)
277{
278  if (sfConfig::get('sf_test'))
279  {
280    throw $e;
281  }
282  try
283  {
284        $sfException = new sfException();
285    $sfException->printStackTrace($e);
286  }
287  catch (Exception $e)
288  {
289    header('HTTP/1.0 500 Internal Server Error');
290  }
291}
292
Note: See TracBrowser for help on using the repository browser.