config.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. imports:
  2. - { resource: defaults.yml }
  3. - { resource: parameters.yml }
  4. - { resource: security.yml }
  5. framework:
  6. secret: %secret%
  7. router:
  8. resource: "%kernel.root_dir%/config/routing.yml"
  9. strict_requirements: %kernel.debug%
  10. form: true
  11. csrf_protection: true
  12. validation: { enable_annotations: true }
  13. translator: { fallback: en }
  14. templating: { engines: ['twig'], assets_version: v=%assets_version% }
  15. default_locale: %locale%
  16. session:
  17. name: packagist
  18. cookie_lifetime: 3600
  19. cookie_httponly: true
  20. save_path: %session_save_path%
  21. trusted_proxies: %trusted_proxies%
  22. trusted_hosts: %trusted_hosts%
  23. http_method_override: true
  24. fragments: ~
  25. # Twig Configuration
  26. twig:
  27. form:
  28. resources:
  29. - 'PackagistWebBundle::forms.html.twig'
  30. debug: %kernel.debug%
  31. strict_variables: %kernel.debug%
  32. globals:
  33. google_analytics: %google_analytics%
  34. packagist_host: %packagist_host%
  35. # Doctrine Configuration
  36. doctrine:
  37. dbal:
  38. driver: %database_driver%
  39. host: %database_host%
  40. dbname: %database_name%
  41. user: %database_user%
  42. password: %database_password%
  43. charset: UTF8
  44. orm:
  45. auto_generate_proxy_classes: %kernel.debug%
  46. auto_mapping: true
  47. snc_redis:
  48. clients:
  49. default:
  50. type: predis
  51. alias: default
  52. dsn: %redis_dsn%
  53. options:
  54. profile: 2.8
  55. # Swiftmailer Configuration
  56. swiftmailer:
  57. transport: %mailer_transport%
  58. host: %mailer_host%
  59. username: %mailer_user%
  60. password: %mailer_password%
  61. spool: { type: memory }
  62. fos_user:
  63. db_driver: orm
  64. firewall_name: main
  65. user_class: Packagist\WebBundle\Entity\User
  66. use_username_form_type: true
  67. from_email:
  68. address: %mailer_from_email%
  69. sender_name: %mailer_from_name%
  70. registration:
  71. form:
  72. handler: packagist.form.handler.registration
  73. profile:
  74. form:
  75. type: packagist_user_profile
  76. hwi_oauth:
  77. firewall_name: main
  78. connect:
  79. account_connector: packagist.user_provider
  80. registration_form_handler: packagist.oauth.registration_form_handler
  81. registration_form: packagist.oauth.registration_form
  82. resource_owners:
  83. github:
  84. type: github
  85. client_id: %github.client_id%
  86. client_secret: %github.client_secret%
  87. options:
  88. csrf: true
  89. nelmio_solarium: ~