Advertisement
Guest User

Untitled

a guest
Apr 6th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4. - { resource: services.yml }
  5.  
  6. # Put parameters here that don't need to change on each machine where the app is deployed
  7. # http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  8. parameters:
  9. locale: en
  10.  
  11. framework:
  12. #esi: ~
  13. #translator: { fallbacks: ["%locale%"] }
  14. secret: "%secret%"
  15. router:
  16. resource: "%kernel.root_dir%/config/routing.yml"
  17. strict_requirements: ~
  18. form: ~
  19. csrf_protection: ~
  20. validation: { enable_annotations: true }
  21. #serializer: { enable_annotations: true }
  22. templating:
  23. engines: ['twig']
  24. #assets_version: SomeVersionScheme
  25. default_locale: "%locale%"
  26. trusted_hosts: ~
  27. trusted_proxies: ~
  28. session:
  29. # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  30. handler_id: session.handler.native_file
  31. save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
  32. fragments: ~
  33. http_method_override: true
  34. assets: ~
  35.  
  36. # Twig Configuration
  37. twig:
  38. debug: "%kernel.debug%"
  39. strict_variables: "%kernel.debug%"
  40.  
  41. # Doctrine Configuration
  42. doctrine:
  43. dbal:
  44. driver: pdo_mysql
  45. host: "%database_host%"
  46. port: "%database_port%"
  47. dbname: "%database_name%"
  48. user: "%database_user%"
  49. password: "%database_password%"
  50. charset: UTF8
  51. # if using pdo_sqlite as your database driver:
  52. # 1. add the path in parameters.yml
  53. # e.g. database_path: "%kernel.root_dir%/data/data.db3"
  54. # 2. Uncomment database_path in parameters.yml.dist
  55. # 3. Uncomment next line:
  56. # path: "%database_path%"
  57. mapping_types:
  58. enum: string
  59. orm:
  60. auto_generate_proxy_classes: "%kernel.debug%"
  61. naming_strategy: doctrine.orm.naming_strategy.underscore
  62. auto_mapping: true
  63.  
  64. # Swiftmailer Configuration
  65. swiftmailer:
  66. transport: "%mailer_transport%"
  67. host: "%mailer_host%"
  68. username: "%mailer_user%"
  69. password: "%mailer_password%"
  70. spool: { type: memory }
  71.  
  72. fos_rest:
  73. serializer:
  74. serialize_null: true
  75. view:
  76. view_response_listener: force
  77. force_redirects:
  78. html: true
  79. formats:
  80. json: true
  81. xml: true
  82. rss: false
  83. templating_formats:
  84. html: true
  85. mime_types:
  86. json: ['application/json', 'application/x-json', 'application/vnd.example-com.foo+json']
  87. jpg: 'image/jpeg'
  88. png: 'image/png'
  89. body_listener: true
  90. param_fetcher_listener: force
  91. allowed_methods_listener: true
  92. access_denied_listener:
  93. json: true
  94. format_listener:
  95. rules:
  96. - { path: '^/', priorities: ['html','json', 'xml'], fallback_format: html, prefer_extension: true }
  97. routing_loader:
  98. default_format: ~
  99. exception:
  100. codes:
  101. 'Symfony\Component\Routing\Exception\ResourceNotFoundException': 404
  102. messages:
  103. 'Symfony\Component\Routing\Exception\ResourceNotFoundException': true
  104. disable_csrf_role: ROLE_API
  105.  
  106. fos_user:
  107. db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
  108. firewall_name: main
  109. user_class: AppBundle\Entity\User
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement