Advertisement
Guest User

Untitled

a guest
Jun 7th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  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: en
  9.  
  10. framework:
  11. templating:
  12. engines: ['twig']
  13. #esi: ~
  14. translator: ~
  15. secret: '%secret%'
  16. router:
  17. resource: '%kernel.project_dir%/app/config/routing.yml'
  18. strict_requirements: ~
  19. form: ~
  20. csrf_protection: ~
  21. validation: { enable_annotations: true }
  22. #serializer: { enable_annotations: true }
  23. default_locale: '%locale%'
  24. trusted_hosts: ~
  25. session:
  26. # https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  27. handler_id: session.handler.native_file
  28. save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
  29. fragments: ~
  30. http_method_override: true
  31. assets: ~
  32. php_errors:
  33. log: true
  34.  
  35. # Twig Configuration
  36. twig:
  37. debug: '%kernel.debug%'
  38. strict_variables: '%kernel.debug%'
  39.  
  40. # Doctrine Configuration
  41. doctrine:
  42. dbal:
  43. driver: pdo_mysql
  44. host: '%database_host%'
  45. port: '%database_port%'
  46. dbname: '%database_name%'
  47. user: '%database_user%'
  48. password: '%database_password%'
  49. charset: UTF8
  50. # if using pdo_sqlite as your database driver:
  51. # 1. add the path in parameters.yml
  52. # e.g. database_path: '%kernel.project_dir%/var/data/data.sqlite'
  53. # 2. Uncomment database_path in parameters.yml.dist
  54. # 3. Uncomment next line:
  55. #path: '%database_path%'
  56.  
  57. orm:
  58. auto_generate_proxy_classes: '%kernel.debug%'
  59. naming_strategy: doctrine.orm.naming_strategy.underscore
  60. auto_mapping: true
  61.  
  62. # Swiftmailer Configuration
  63. swiftmailer:
  64. transport: '%mailer_transport%'
  65. host: '%mailer_host%'
  66. username: '%mailer_user%'
  67. password: '%mailer_password%'
  68. spool: { type: memory }
  69.  
  70. fos_user:
  71. db_driver: orm # other valid values are 'mongodb' and 'couchdb'
  72. firewall_name: main
  73. user_class: AppBundle\Entity\User
  74. from_email:
  75. address: "%mailer_user%"
  76. sender_name: "%mailer_user%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement