config.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4. framework:
  5. secret: %secret%
  6. router:
  7. resource: "%kernel.root_dir%/config/routing.yml"
  8. strict_requirements: %kernel.debug%
  9. form: true
  10. csrf_protection: true
  11. validation: { enable_annotations: true }
  12. translator: { fallback: en }
  13. templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
  14. default_locale: %locale%
  15. session:
  16. name: packagist
  17. lifetime: 3600
  18. trusted_proxies: %trusted_proxies%
  19. # Twig Configuration
  20. twig:
  21. debug: %kernel.debug%
  22. strict_variables: %kernel.debug%
  23. globals:
  24. google_analytics: %google_analytics%
  25. packagist_host: %packagist_host%
  26. # Assetic Configuration
  27. assetic:
  28. debug: %kernel.debug%
  29. use_controller: false
  30. filters:
  31. cssrewrite: ~
  32. closure:
  33. jar: %kernel.root_dir%/java/compiler.jar
  34. yui_css:
  35. jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
  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. orm:
  46. auto_generate_proxy_classes: %kernel.debug%
  47. auto_mapping: true
  48. snc_redis:
  49. clients:
  50. default:
  51. type: predis
  52. alias: default
  53. dsn: %redis_dsn%
  54. # Swiftmailer Configuration
  55. swiftmailer:
  56. transport: %mailer_transport%
  57. host: %mailer_host%
  58. username: %mailer_user%
  59. password: %mailer_password%
  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: ~
  86. parameters:
  87. session.flashbag.class: Symfony\Component\HttpFoundation\Session\Flash\FlashBag