factories.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. prod:
  2. logger:
  3. class: sfAggregateLogger
  4. param:
  5. level: debug
  6. loggers:
  7. sf_var_debug:
  8. class: sfVarLogger
  9. param:
  10. level: err
  11. sf_file_debug:
  12. class: sfFileLogger
  13. param:
  14. level: notice
  15. file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log
  16. cli:
  17. controller:
  18. class: sfConsoleController
  19. request:
  20. class: sfConsoleRequest
  21. response:
  22. class: sfConsoleResponse
  23. test:
  24. storage:
  25. class: sfSessionTestStorage
  26. param:
  27. session_path: %SF_TEST_CACHE_DIR%/sessions
  28. response:
  29. class: sfWebResponse
  30. param:
  31. send_http_headers: false
  32. all:
  33. routing:
  34. class: sfPatternRouting
  35. param:
  36. generate_shortest_url: true
  37. extra_parameters_as_query_string: true
  38. storage:
  39. # class: sfSessionStorage
  40. class: sfPDOSessionStorage
  41. # class: UsicSessionStorage
  42. param:
  43. session_name: usic
  44. database: session
  45. db_table: session
  46. db_id_col: id
  47. db_data_col: data
  48. db_time_col: time
  49. user:
  50. class: myUser
  51. param:
  52. timeout: 1800
  53. logging: %SF_LOGGING_ENABLED%
  54. use_flash: true
  55. default_culture: %SF_DEFAULT_CULTURE%
  56. #all:
  57. # controller:
  58. # class: sfFrontWebController
  59. #
  60. # request:
  61. # class: sfWebRequest
  62. # param:
  63. # logging: %SF_LOGGING_ENABLED%
  64. # path_info_array: SERVER
  65. # path_info_key: PATH_INFO
  66. # relative_url_root: ~
  67. # formats:
  68. # txt: text/plain
  69. # js: [application/javascript, application/x-javascript, text/javascript]
  70. # css: text/css
  71. # json: [application/json, application/x-json]
  72. # xml: [text/xml, application/xml, application/x-xml]
  73. # rdf: application/rdf+xml
  74. # atom: application/atom+xml
  75. #
  76. # response:
  77. # class: sfWebResponse
  78. # param:
  79. # logging: %SF_LOGGING_ENABLED%
  80. # charset: %SF_CHARSET%
  81. # send_http_headers: true
  82. #
  83. # user:
  84. # class: myUser
  85. # param:
  86. # timeout: 1800
  87. # logging: %SF_LOGGING_ENABLED%
  88. # use_flash: true
  89. # default_culture: %SF_DEFAULT_CULTURE%
  90. #
  91. # storage:
  92. # class: sfSessionStorage
  93. # param:
  94. # session_name: symfony
  95. #
  96. # view_cache:
  97. # class: sfFileCache
  98. # param:
  99. # automatic_cleaning_factor: 0
  100. # cache_dir: %SF_TEMPLATE_CACHE_DIR%
  101. # lifetime: 86400
  102. # prefix: %SF_APP_DIR%/template
  103. #
  104. # i18n:
  105. # class: sfI18N
  106. # param:
  107. # source: XLIFF
  108. # debug: off
  109. # untranslated_prefix: "[T]"
  110. # untranslated_suffix: "[/T]"
  111. # cache:
  112. # class: sfFileCache
  113. # param:
  114. # automatic_cleaning_factor: 0
  115. # cache_dir: %SF_I18N_CACHE_DIR%
  116. # lifetime: 31556926
  117. # prefix: %SF_APP_DIR%/i18n
  118. #
  119. # routing:
  120. # class: sfPatternRouting
  121. # param:
  122. # load_configuration: true
  123. # suffix: ''
  124. # default_module: default
  125. # default_action: index
  126. # debug: %SF_DEBUG%
  127. # logging: %SF_LOGGING_ENABLED%
  128. # generate_shortest_url: false
  129. # extra_parameters_as_query_string: false
  130. # cache:
  131. # class: sfFileCache
  132. # param:
  133. # automatic_cleaning_factor: 0
  134. # cache_dir: %SF_CONFIG_CACHE_DIR%/routing
  135. # lifetime: 31556926
  136. # prefix: %SF_APP_DIR%/routing
  137. #
  138. # logger:
  139. # class: sfAggregateLogger
  140. # param:
  141. # level: debug
  142. # loggers:
  143. # sf_web_debug:
  144. # class: sfWebDebugLogger
  145. # param:
  146. # level: debug
  147. # condition: %SF_WEB_DEBUG%
  148. # xdebug_logging: true
  149. # web_debug_class: sfWebDebug
  150. # sf_file_debug:
  151. # class: sfFileLogger
  152. # param:
  153. # level: debug
  154. # file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log