Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.79 KB | None | 0 0
  1. imports:
  2. - { resource: parameters.ini }
  3. - { resource: security.yml }
  4.  
  5. framework:
  6. #esi: ~
  7. secret: %secret%
  8. charset: UTF-8
  9. router: { resource: "%kernel.root_dir%/config/routing.yml" }
  10. form: true
  11. csrf_protection: true
  12. validation: { enable_annotations: true }
  13. templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
  14. translator: { fallback: en }
  15. session:
  16. default_locale: %locale%
  17. auto_start: true
  18.  
  19. # Twig Configuration
  20. twig:
  21. debug: true
  22. strict_variables: %kernel.debug%
  23. form:
  24. resources:
  25. - 'BlackRookTaskBundle:Form:fields.html.twig'
  26.  
  27.  
  28. # Assetic Configuration
  29. assetic:
  30. debug: %kernel.debug%
  31. use_controller: false
  32. filters:
  33. cssrewrite: ~
  34. # closure:
  35. # jar: %kernel.root_dir%/java/compiler.jar
  36. # yui_css:
  37. # jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
  38.  
  39. # Doctrine Configuration
  40. doctrine:
  41. dbal:
  42. driver: %database_driver%
  43. host: %database_host%
  44. dbname: %database_name%
  45. user: %database_user%
  46. password: %database_password%
  47. charset: UTF8
  48.  
  49. orm:
  50. auto_generate_proxy_classes: %kernel.debug%
  51. auto_mapping: true
  52. mappings:
  53. StofDoctrineExtensionsBundle: false
  54.  
  55. # Swiftmailer Configuration
  56. swiftmailer:
  57. transport: %mailer_transport%
  58. host: %mailer_host%
  59. username: %mailer_user%
  60. password: %mailer_password%
  61.  
  62. # Security Exceptions
  63. jms_security_extra:
  64. secure_controllers: true
  65. secure_all_services: false
  66.  
  67. # Doctrine Extensions Configuration
  68. stof_doctrine_extensions:
  69. default_locale: en_US
  70. orm:
  71. default:
  72. tree: true
  73. timestampable: true # not needed: listeners are not enabled by default
  74.  
  75. # Framework Extra Configuration
  76. sensio_framework_extra:
  77. router: { annotations: true }
  78. request: { converters: true }
  79. # view: { annotations: true }
  80. view: { annotations: false }
  81. cache: { annotations: true }
  82.  
  83. # FOS Rest Configuration
  84. fos_rest:
  85. routing_loader:
  86. default_format: html
  87. view:
  88. default_engine: twig
  89. force_redirects:
  90. html: true
  91. formats:
  92. json: true
  93. xml: true
  94. rss: false
  95. templating_formats:
  96. html: true
  97. view_response_listener: force
  98. failed_validation: HTTP_BAD_REQUEST
  99. exception:
  100. codes: ~
  101. messages: ~
  102. body_listener:
  103. decoders:
  104. json: fos_rest.decoder.json
  105. xml: fos_rest.decoder.xml
  106. format_listener:
  107. default_priorities:
  108. - html
  109. - json
  110. - xml
  111. - rss
  112. - "*/*"
  113. # never reached due to "*/*"
  114. - ding
  115. # the subsequent line overrides the following line, so the default is NULL
  116. fallback_format: json
  117. fallback_format: ~
  118. prefer_extension: true
  119. service:
  120. view_handler: fos_rest.view_handler.default
  121.  
  122. fos_user:
  123. db_driver: orm # other valid values are 'mongodb', 'couchdb'
  124. firewall_name: main
  125. user_class: BlackRook\TaskBundle\Entity\User
  126.  
  127. services:
  128. twig.extension.secondsToHuman:
  129. class: BlackRook\TaskBundle\Twig\Extension\SecondsToHuman
  130. tags:
  131. - { name: twig.extension }
  132. twig.extension.debug:
  133. class: Twig_Extensions_Extension_Debug
  134. tags:
  135. - { name: twig.extension }
  136. form.type.jsonToArray:
  137. class: BlackRook\TaskBundle\Form\Type\JsonToArrayType
  138. tags:
  139. - { name: form.type, alias: jsonToArray }
  140. form.type.yamlToArray:
  141. class: BlackRook\TaskBundle\Form\Type\YamlToArrayType
  142. tags:
  143. - { name: form.type, alias: yamlToArray }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement