config.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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'] }
  15. assets:
  16. version: v=%assets_version%
  17. default_locale: %locale%
  18. session:
  19. name: packagist
  20. cookie_lifetime: 3600
  21. cookie_httponly: true
  22. save_path: %session_save_path%
  23. trusted_proxies: %trusted_proxies%
  24. trusted_hosts: %trusted_hosts%
  25. http_method_override: true
  26. fragments: ~
  27. # Twig Configuration
  28. twig:
  29. form_themes:
  30. - 'PackagistWebBundle::forms.html.twig'
  31. debug: %kernel.debug%
  32. strict_variables: %kernel.debug%
  33. globals:
  34. google_analytics: %google_analytics%
  35. packagist_host: %packagist_host%
  36. # Doctrine Configuration
  37. doctrine:
  38. dbal:
  39. driver: %database_driver%
  40. host: %database_host%
  41. dbname: %database_name%
  42. user: %database_user%
  43. password: %database_password%
  44. charset: utf8mb4
  45. # See https://github.com/sonata-project/SonataAdminBundle/issues/3342
  46. server_version: 5.6
  47. orm:
  48. auto_generate_proxy_classes: %kernel.debug%
  49. auto_mapping: true
  50. snc_redis:
  51. clients:
  52. default:
  53. type: predis
  54. alias: default
  55. dsn: %redis_dsn%
  56. options:
  57. profile: 2.8
  58. session:
  59. client: default
  60. prefix: 'sess:'
  61. ttl: 3600
  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. fos_user:
  70. db_driver: orm
  71. firewall_name: main
  72. user_class: Packagist\WebBundle\Entity\User
  73. use_username_form_type: true
  74. from_email:
  75. address: %mailer_from_email%
  76. sender_name: %mailer_from_name%
  77. profile:
  78. form:
  79. type: packagist_user_profile
  80. hwi_oauth:
  81. firewall_names: [main]
  82. connect:
  83. account_connector: packagist.user_provider
  84. registration_form_handler: packagist.oauth.registration_form_handler
  85. registration_form: packagist.oauth.registration_form
  86. fosub:
  87. username_iterations: 30
  88. properties:
  89. github: githubId
  90. resource_owners:
  91. github:
  92. type: github
  93. client_id: %github.client_id%
  94. client_secret: %github.client_secret%
  95. options:
  96. csrf: true
  97. nelmio_solarium:
  98. clients:
  99. default:
  100. host: %solr_host%
  101. port: %solr_port%
  102. path: %solr_path%
  103. core: %solr_core%