config.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4. - { resource: services.yml }
  5. - { resource: "@DocumentBundle/Resources/config/services.yml" }
  6. # Put parameters here that don't need to change on each machine where the app is deployed
  7. # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  8. parameters:
  9. locale: en
  10. framework:
  11. #esi: ~
  12. #translator: { fallbacks: ['%locale%'] }
  13. secret: '%secret%'
  14. router:
  15. resource: '%kernel.project_dir%/app/config/routing.yml'
  16. strict_requirements: ~
  17. form: ~
  18. csrf_protection: ~
  19. validation: { enable_annotations: true }
  20. #serializer: { enable_annotations: true }
  21. default_locale: '%locale%'
  22. trusted_hosts: ~
  23. session:
  24. # https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  25. handler_id: session.handler.native_file
  26. save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
  27. fragments: ~
  28. http_method_override: true
  29. assets: ~
  30. php_errors:
  31. log: true
  32. # Twig Configuration
  33. twig:
  34. debug: '%kernel.debug%'
  35. strict_variables: '%kernel.debug%'
  36. # Doctrine Configuration
  37. doctrine:
  38. dbal:
  39. driver: pdo_mysql
  40. host: '%database_host%'
  41. port: '%database_port%'
  42. dbname: '%database_name%'
  43. user: '%database_user%'
  44. password: '%database_password%'
  45. charset: UTF8
  46. # if using pdo_sqlite as your database driver:
  47. # 1. add the path in parameters.yml
  48. # e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite'
  49. # 2. Uncomment database_path in parameters.yml.dist
  50. # 3. Uncomment next line:
  51. #path: '%database_path%'
  52. orm:
  53. auto_generate_proxy_classes: '%kernel.debug%'
  54. naming_strategy: doctrine.orm.naming_strategy.underscore
  55. auto_mapping: true
  56. # Swiftmailer Configuration
  57. swiftmailer:
  58. transport: '%mailer_transport%'
  59. host: '%mailer_host%'
  60. username: '%mailer_user%'
  61. password: '%mailer_password%'
  62. spool: { type: memory }
  63. sensio_framework_extra:
  64. router:
  65. annotations: false