config.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4. - { resource: services.yml }
  5. # Put parameters here that don't need to change on each machine where the app is deployed
  6. # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  7. parameters:
  8. locale: fr
  9. framework:
  10. #esi: ~
  11. #translator: { fallbacks: ['%locale%'] }
  12. secret: '%secret%'
  13. router:
  14. resource: '%kernel.project_dir%/app/config/routing.yml'
  15. strict_requirements: ~
  16. form: ~
  17. csrf_protection: ~
  18. validation: { enable_annotations: true }
  19. serializer: { enable_annotations: true }
  20. default_locale: '%locale%'
  21. trusted_hosts: ~
  22. session:
  23. # https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  24. handler_id: session.handler.native_file
  25. save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
  26. fragments: ~
  27. http_method_override: true
  28. assets: ~
  29. php_errors:
  30. log: true
  31. # Twig Configuration
  32. twig:
  33. debug: '%kernel.debug%'
  34. strict_variables: '%kernel.debug%'
  35. form_themes: ['bootstrap_4_layout.html.twig']
  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