Advertisement
Guest User

config.yml

a guest
Mar 3rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 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. my_provider: my.custom.user_provider
  11.  
  12. framework:
  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. service:
  75. mailer: fos_user.mailer.twig_swift #fos_user.mailer.noop
  76. from_email:
  77. address: "%mailer_user%" #impostato in parameters.yml
  78. sender_name: "%mailer_user%"
  79.  
  80.  
  81. hwi_oauth:
  82. # name of the firewall in which this bundle is active, this setting MUST be set
  83. firewall_name: main
  84. connect:
  85. account_connector: "%my_provider%"
  86. resource_owners:
  87. facebook:
  88. type: facebook
  89. client_id: %facebook.id%
  90. client_secret: %facebook.secret%
  91. scope: "email, public_profile"
  92. infos_url: "https://graph.facebook.com/me?fields=id,name,email,picture.type(large)"
  93. paths:
  94. email: email
  95. options:
  96. display: page
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement