Advertisement
Guest User

config.yml

a guest
Mar 26th, 2018
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 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. # http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  8. parameters:
  9. locale: it
  10. upload_dir: '%kernel.root_dir%/../web/upload'
  11.  
  12. framework:
  13. #esi: ~
  14. translator: { fallbacks: ["%locale%"] }
  15. secret: "%secret%"
  16. router:
  17. resource: "%kernel.root_dir%/config/routing.yml"
  18. strict_requirements: ~
  19. form: ~
  20. csrf_protection: ~
  21. validation: { enable_annotations: true }
  22. #serializer: { enable_annotations: true }
  23. templating:
  24. engines: ['twig']
  25. default_locale: "%locale%"
  26. trusted_hosts: ~
  27. trusted_proxies: ~
  28. session:
  29. # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  30. handler_id: session.handler.native_file
  31. save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
  32. fragments: ~
  33. http_method_override: true
  34. assets: ~
  35. php_errors:
  36. log: true
  37.  
  38. # Twig Configuration
  39. twig:
  40. debug: "%kernel.debug%"
  41. strict_variables: "%kernel.debug%"
  42. form_themes:
  43. - "bootstrap_3_layout.html.twig"
  44. #form_themes:
  45. #- "bootstrap_3_layout.html.twig"
  46.  
  47.  
  48.  
  49. # Doctrine Configuration
  50. doctrine:
  51. dbal:
  52. driver: pdo_mysql
  53. host: "%database_host%"
  54. port: "%database_port%"
  55. dbname: "%database_name%"
  56. user: "%database_user%"
  57. password: "%database_password%"
  58. charset: UTF8
  59. server_version: 5.7
  60.  
  61. # if using pdo_sqlite as your database driver:
  62. # 1. add the path in parameters.yml
  63. # e.g. database_path: "%kernel.root_dir%/data/data.db3"
  64. # 2. Uncomment database_path in parameters.yml.dist
  65. # 3. Uncomment next line:
  66. # path: "%database_path%"
  67.  
  68. orm:
  69. auto_generate_proxy_classes: "%kernel.debug%"
  70. naming_strategy: doctrine.orm.naming_strategy.underscore
  71. auto_mapping: true
  72.  
  73. # Swiftmailer Configuration
  74. swiftmailer:
  75. transport: "%mailer_transport%"
  76. host: "%mailer_host%"
  77. username: "%mailer_user%"
  78. password: "%mailer_password%"
  79. spool: { type: memory }
  80.  
  81. fos_user:
  82. db_driver: orm # other valid values are 'mongodb' and 'couchdb'
  83. firewall_name: main
  84. user_class: AppBundle\Entity\Utente
  85. service: # this lines
  86. mailer: fos_user.mailer.twig_swift
  87. resetting:
  88. email:
  89. template: FOSUserBundle:Registration:check_email.html.twig
  90. registration:
  91. confirmation:
  92. template: FOSUserBundle:Registration:email.txt.twig
  93. from_email:
  94. address: info@visioweb.it
  95. sender_name: info
  96.  
  97.  
  98. hwi_oauth:
  99. connect:
  100. account_connector: my.custom.user_provider
  101.  
  102. firewall_names: [main]
  103. fosub:
  104. username_iterations: 30
  105. properties:
  106. facebook: facebook_id
  107. resource_owners:
  108. facebook:
  109. type: facebook
  110. client_id: "%facebook.id%"
  111. client_secret: "%facebook.secret%"
  112. scope: "email"
  113. infos_url: "https://graph.facebook.com/me?fields=email,id,first_name,last_name,picture.type(square)"
  114. paths:
  115. email: email
  116. firstname: first_name
  117. lastname: last_name
  118. profilepicture: picture.data.url
  119. options:
  120. csrf: true
  121. auth_type: rerequest # Re-asking for Declined Permissions
  122. appsecret_proof: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement