Advertisement
Guest User

config.yml

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