config.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. # Doctrine Configuration
  36. doctrine:
  37. dbal:
  38. driver: pdo_mysql
  39. host: '%database_host%'
  40. port: '%database_port%'
  41. dbname: '%database_name%'
  42. user: '%database_user%'
  43. password: '%database_password%'
  44. charset: UTF8
  45. # if using pdo_sqlite as your database driver:
  46. # 1. add the path in parameters.yml
  47. # e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite'
  48. # 2. Uncomment database_path in parameters.yml.dist
  49. # 3. Uncomment next line:
  50. #path: '%database_path%'
  51. orm:
  52. auto_generate_proxy_classes: '%kernel.debug%'
  53. naming_strategy: doctrine.orm.naming_strategy.underscore
  54. auto_mapping: true
  55. # Swiftmailer Configuration
  56. swiftmailer:
  57. transport: '%mailer_transport%'
  58. host: '%mailer_host%'
  59. username: '%mailer_user%'
  60. password: '%mailer_password%'
  61. spool: { type: memory }
  62. sensio_framework_extra:
  63. router:
  64. annotations: false