config.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. json_manifest_path: '%kernel.project_dir%/web/build/manifest.json'
  30. php_errors:
  31. log: true
  32. # Twig Configuration
  33. twig:
  34. debug: '%kernel.debug%'
  35. strict_variables: '%kernel.debug%'
  36. form_themes: ['bootstrap_4_layout.html.twig']
  37. # Doctrine Configuration
  38. doctrine:
  39. dbal:
  40. driver: pdo_mysql
  41. host: '%database_host%'
  42. port: '%database_port%'
  43. dbname: '%database_name%'
  44. user: '%database_user%'
  45. password: '%database_password%'
  46. charset: UTF8
  47. # if using pdo_sqlite as your database driver:
  48. # 1. add the path in parameters.yml
  49. # e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite'
  50. # 2. Uncomment database_path in parameters.yml.dist
  51. # 3. Uncomment next line:
  52. #path: '%database_path%'
  53. orm:
  54. auto_generate_proxy_classes: '%kernel.debug%'
  55. naming_strategy: doctrine.orm.naming_strategy.underscore
  56. auto_mapping: true
  57. # Swiftmailer Configuration
  58. swiftmailer:
  59. transport: '%mailer_transport%'
  60. host: '%mailer_host%'
  61. username: '%mailer_user%'
  62. password: '%mailer_password%'
  63. encryption: '%mailer_encryption%'
  64. auth_mode: '%mailer_auth_mode%'
  65. spool: { type: memory }
  66. sensio_framework_extra:
  67. router:
  68. annotations: false