Advertisement
Guest User

config.yml

a guest
Jan 26th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4.  
  5. framework:
  6. #esi: ~
  7. #translator: { fallback: "%locale%" }
  8. secret: "%secret%"
  9. router:
  10. resource: "%kernel.root_dir%/config/routing.yml"
  11. strict_requirements: "%kernel.debug%"
  12. form: true
  13. csrf_protection: true
  14. validation: { enable_annotations: true }
  15. templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
  16. default_locale: "%locale%"
  17. trust_proxy_headers: false # Deprecated in 2.0; will be removed in 2.3 (used trusted_proxies instead)
  18. trusted_proxies: ~
  19. session: ~
  20.  
  21. # Twig Configuration
  22. twig:
  23. debug: "%kernel.debug%"
  24. strict_variables: "%kernel.debug%"
  25.  
  26. # Assetic Configuration
  27. assetic:
  28. debug: "%kernel.debug%"
  29. use_controller: false
  30. bundles: [ ]
  31. #java: /usr/bin/java
  32. filters:
  33. cssrewrite: ~
  34. #closure:
  35. # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
  36. #yui_css:
  37. # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
  38.  
  39. # Doctrine Configuration
  40. #doctrine:
  41. # dbal:
  42. # driver: "%database_driver%"
  43. # host: "%database_host%"
  44. # port: "%database_port%"
  45. # dbname: "%database_name%"
  46. # user: "%database_user%"
  47. # password: "%database_password%"
  48. # charset: UTF8
  49. #
  50. # orm:
  51. # auto_generate_proxy_classes: "%kernel.debug%"
  52. # auto_mapping: true
  53.  
  54. # Swiftmailer Configuration
  55. swiftmailer:
  56. transport: "%mailer_transport%"
  57. host: "%mailer_host%"
  58. username: "%mailer_user%"
  59. password: "%mailer_password%"
  60. spool: { type: memory }
  61.  
  62.  
  63. # app/config/config.yml
  64. doctrine:
  65. orm:
  66. entity_managers:
  67. default:
  68. mappings:
  69. gedmo_translatable:
  70. type: annotation
  71. prefix: Gedmo\Translatable\Entity
  72. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
  73. alias: GedmoTranslatable # this one is optional and will default to the name set for the mapping
  74. is_bundle: false
  75. gedmo_translator:
  76. type: annotation
  77. prefix: Gedmo\Translator\Entity
  78. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
  79. alias: GedmoTranslator # this one is optional and will default to the name set for the mapping
  80. is_bundle: false
  81. gedmo_loggable:
  82. type: annotation
  83. prefix: Gedmo\Loggable\Entity
  84. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
  85. alias: GedmoLoggable # this one is optional and will default to the name set for the mapping
  86. is_bundle: false
  87. gedmo_tree:
  88. type: annotation
  89. prefix: Gedmo\Tree\Entity
  90. dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
  91. alias: GedmoTree # this one is optional and will default to the name set for the mapping
  92. is_bundle: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement