config.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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: UTF8
  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. # Swiftmailer Configuration
  59. swiftmailer:
  60. transport: %mailer_transport%
  61. host: %mailer_host%
  62. username: %mailer_user%
  63. password: %mailer_password%
  64. spool: { type: memory }
  65. fos_user:
  66. db_driver: orm
  67. firewall_name: main
  68. user_class: Packagist\WebBundle\Entity\User
  69. use_username_form_type: true
  70. from_email:
  71. address: %mailer_from_email%
  72. sender_name: %mailer_from_name%
  73. profile:
  74. form:
  75. type: packagist_user_profile
  76. hwi_oauth:
  77. firewall_names: [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:
  90. clients:
  91. default:
  92. host: %solr_host%
  93. port: %solr_port%
  94. path: %solr_path%
  95. core: %solr_core%