Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 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. # https://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.project_dir%/app/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. default_locale: '%locale%'
  25. trusted_hosts: ~
  26. session:
  27. # https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  28. handler_id: session.handler.native_file
  29. save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
  30. fragments: ~
  31. http_method_override: true
  32. assets: ~
  33. php_errors:
  34. log: true
  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: utf8mb4
  51. default_table_options:
  52. charset: utf8mb4
  53. collate: utf8mb4_unicode_ci
  54. # if using pdo_sqlite as your database driver:
  55. # 1. add the path in parameters.yml
  56. # e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite'
  57. # 2. Uncomment database_path in parameters.yml.dist
  58. # 3. Uncomment next line:
  59. #path: '%database_path%'
  60.  
  61. orm:
  62. auto_generate_proxy_classes: '%kernel.debug%'
  63. naming_strategy: doctrine.orm.naming_strategy.underscore
  64. auto_mapping: true
  65.  
  66. # Swiftmailer Configuration
  67. swiftmailer:
  68. transport: '%mailer_transport%'
  69. host: '%mailer_host%'
  70. username: '%mailer_user%'
  71. password: '%mailer_password%'
  72. spool: { type: memory }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement