config.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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: SomeVersionScheme
  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. # Swiftmailer Configuration
  54. swiftmailer:
  55. transport: %mailer_transport%
  56. host: %mailer_host%
  57. username: %mailer_user%
  58. password: %mailer_password%
  59. spool: { type: memory }
  60. fos_user:
  61. db_driver: orm
  62. firewall_name: main
  63. user_class: Packagist\WebBundle\Entity\User
  64. use_username_form_type: true
  65. from_email:
  66. address: %mailer_from_email%
  67. sender_name: %mailer_from_name%
  68. registration:
  69. form:
  70. handler: packagist.form.handler.registration
  71. profile:
  72. form:
  73. type: packagist_user_profile
  74. hwi_oauth:
  75. firewall_name: main
  76. connect:
  77. account_connector: packagist.user_provider
  78. registration_form_handler: packagist.oauth.registration_form_handler
  79. registration_form: packagist.oauth.registration_form
  80. resource_owners:
  81. github:
  82. type: github
  83. client_id: %github.client_id%
  84. client_secret: %github.client_secret%
  85. nelmio_solarium: ~