PageRenderTime 25ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/cache/frontapp/dev/config/config_factories.yml.php

https://github.com/erickjth/SurveysAdmin
PHP | 161 lines | 147 code | 12 blank | 2 comment | 7 complexity | 3875410a3c2e6287e3f71d62839f9515 MD5 | raw file
  1. <?php
  2. // auto-generated by sfFactoryConfigHandler
  3. // date: 2011/06/01 14:30:01
  4. $class = sfConfig::get('sf_factory_logger', 'sfAggregateLogger');
  5. $this->factories['logger'] = new $class($this->dispatcher, array_merge(array('auto_shutdown' => false), sfConfig::get('sf_factory_logger_parameters', array (
  6. 'level' => 'debug',
  7. ))));
  8. $logger = new sfWebDebugLogger($this->dispatcher, array_merge(array('auto_shutdown' => false), array (
  9. 'level' => 'debug',
  10. 'xdebug_logging' => false,
  11. 'web_debug_class' => 'sfWebDebug',
  12. )));
  13. $this->factories['logger']->addLogger($logger);
  14. $logger = new sfFileLogger($this->dispatcher, array_merge(array('auto_shutdown' => false), array (
  15. 'level' => 'debug',
  16. 'file' => '/home/erick/Proyectos/saviosurvey/log/frontapp_dev.log',
  17. )));
  18. $this->factories['logger']->addLogger($logger);
  19. if (sfConfig::get('sf_i18n'))
  20. {
  21. $class = sfConfig::get('sf_factory_i18n', 'sfI18N');
  22. $cache = new sfFileCache(array (
  23. 'automatic_cleaning_factor' => 0,
  24. 'cache_dir' => '/home/erick/Proyectos/saviosurvey/cache/frontapp/dev/i18n',
  25. 'lifetime' => 31556926,
  26. 'prefix' => '/home/erick/Proyectos/saviosurvey/apps/frontapp/i18n',
  27. ));
  28. $this->factories['i18n'] = new $class($this->configuration, $cache, array (
  29. 'source' => 'XLIFF',
  30. 'debug' => false,
  31. 'untranslated_prefix' => '[T]',
  32. 'untranslated_suffix' => '[/T]',
  33. ));
  34. sfWidgetFormSchemaFormatter::setTranslationCallable(array($this->factories['i18n'], '__'));
  35. }
  36. $class = sfConfig::get('sf_factory_controller', 'sfFrontWebController');
  37. $this->factories['controller'] = new $class($this);
  38. $class = sfConfig::get('sf_factory_request', 'sfWebRequest');
  39. $this->factories['request'] = new $class($this->dispatcher, array(), array(), sfConfig::get('sf_factory_request_parameters', array (
  40. 'logging' => '1',
  41. 'path_info_array' => 'SERVER',
  42. 'path_info_key' => 'PATH_INFO',
  43. 'relative_url_root' => NULL,
  44. 'formats' =>
  45. array (
  46. 'txt' => 'text/plain',
  47. 'js' =>
  48. array (
  49. 0 => 'application/javascript',
  50. 1 => 'application/x-javascript',
  51. 2 => 'text/javascript',
  52. ),
  53. 'css' => 'text/css',
  54. 'json' =>
  55. array (
  56. 0 => 'application/json',
  57. 1 => 'application/x-json',
  58. ),
  59. 'xml' =>
  60. array (
  61. 0 => 'text/xml',
  62. 1 => 'application/xml',
  63. 2 => 'application/x-xml',
  64. ),
  65. 'rdf' => 'application/rdf+xml',
  66. 'atom' => 'application/atom+xml',
  67. ),
  68. 'no_script_name' => false,
  69. )), sfConfig::get('sf_factory_request_attributes', array()));
  70. $class = sfConfig::get('sf_factory_response', 'sfWebResponse');
  71. $this->factories['response'] = new $class($this->dispatcher, sfConfig::get('sf_factory_response_parameters', array_merge(array('http_protocol' => isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : null), array (
  72. 'logging' => '1',
  73. 'charset' => 'utf-8',
  74. 'send_http_headers' => true,
  75. ))));
  76. if ($this->factories['request'] instanceof sfWebRequest
  77. && $this->factories['response'] instanceof sfWebResponse
  78. && 'HEAD' == $this->factories['request']->getMethod())
  79. {
  80. $this->factories['response']->setHeaderOnly(true);
  81. }
  82. $class = sfConfig::get('sf_factory_routing', 'sfPatternRouting');
  83. $cache = null;
  84. $this->factories['routing'] = new $class($this->dispatcher, $cache, array_merge(array('auto_shutdown' => false, 'context' => $this->factories['request']->getRequestContext()), sfConfig::get('sf_factory_routing_parameters', array (
  85. 'load_configuration' => true,
  86. 'suffix' => '',
  87. 'default_module' => 'default',
  88. 'default_action' => 'index',
  89. 'debug' => '1',
  90. 'logging' => '1',
  91. 'generate_shortest_url' => true,
  92. 'extra_parameters_as_query_string' => true,
  93. 'cache' => NULL,
  94. ))));
  95. if ($parameters = $this->factories['routing']->parse($this->factories['request']->getPathInfo()))
  96. {
  97. $this->factories['request']->addRequestParameters($parameters);
  98. }
  99. $class = sfConfig::get('sf_factory_storage', 'sfSessionStorage');
  100. $this->factories['storage'] = new $class(array_merge(array(
  101. 'auto_shutdown' => false, 'session_id' => $this->getRequest()->getParameter('symfony'),
  102. ), sfConfig::get('sf_factory_storage_parameters', array (
  103. 'session_name' => 'symfony',
  104. ))));
  105. $class = sfConfig::get('sf_factory_user', 'myUser');
  106. $this->factories['user'] = new $class($this->dispatcher, $this->factories['storage'], array_merge(array('auto_shutdown' => false, 'culture' => $this->factories['request']->getParameter('sf_culture')), sfConfig::get('sf_factory_user_parameters', array (
  107. 'timeout' => 1800,
  108. 'logging' => '1',
  109. 'use_flash' => true,
  110. 'default_culture' => 'en',
  111. ))));
  112. if (sfConfig::get('sf_cache'))
  113. {
  114. $class = sfConfig::get('sf_factory_view_cache', 'sfFileCache');
  115. $cache = new $class(sfConfig::get('sf_factory_view_cache_parameters', array (
  116. 'automatic_cleaning_factor' => 0,
  117. 'cache_dir' => '/home/erick/Proyectos/saviosurvey/cache/frontapp/dev/template',
  118. 'lifetime' => 86400,
  119. 'prefix' => '/home/erick/Proyectos/saviosurvey/apps/frontapp/template',
  120. )));
  121. $this->factories['viewCacheManager'] = new sfViewCacheManager($this, $cache, array (
  122. 'cache_key_use_vary_headers' => true,
  123. 'cache_key_use_host_name' => true,
  124. ));
  125. }
  126. else
  127. {
  128. $this->factories['viewCacheManager'] = null;
  129. }
  130. require_once sfConfig::get('sf_symfony_lib_dir').'/vendor/swiftmailer/classes/Swift.php';
  131. Swift::registerAutoload();
  132. sfMailer::initialize();
  133. $this->setMailerConfiguration(array_merge(array('class' => sfConfig::get('sf_factory_mailer', 'sfMailer')), sfConfig::get('sf_factory_mailer_parameters', array (
  134. 'logging' => '1',
  135. 'charset' => 'utf-8',
  136. 'delivery_strategy' => 'none',
  137. 'transport' =>
  138. array (
  139. 'class' => 'Swift_SmtpTransport',
  140. 'param' =>
  141. array (
  142. 'host' => 'localhost',
  143. 'port' => 25,
  144. 'encryption' => NULL,
  145. 'username' => NULL,
  146. 'password' => NULL,
  147. ),
  148. ),
  149. ))));