config.yml 2.5 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. # Twig Configuration
  19. twig:
  20. debug: %kernel.debug%
  21. strict_variables: %kernel.debug%
  22. globals:
  23. google_analytics: %google_analytics%
  24. packagist_host: %packagist_host%
  25. # Assetic Configuration
  26. assetic:
  27. debug: %kernel.debug%
  28. use_controller: false
  29. filters:
  30. cssrewrite: ~
  31. closure:
  32. jar: %kernel.root_dir%/java/compiler.jar
  33. yui_css:
  34. jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
  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. fos_user:
  60. db_driver: orm
  61. firewall_name: main
  62. user_class: Packagist\WebBundle\Entity\User
  63. use_username_form_type: true
  64. from_email:
  65. address: %mailer_from_email%
  66. sender_name: %mailer_from_name%
  67. registration:
  68. form:
  69. handler: packagist.form.handler.registration
  70. profile:
  71. form:
  72. type: packagist_user_profile
  73. hwi_oauth:
  74. firewall_name: main
  75. connect:
  76. account_connector: packagist.user_provider
  77. registration_form_handler: packagist.oauth.registration_form_handler
  78. registration_form: packagist.oauth.registration_form
  79. resource_owners:
  80. github:
  81. type: github
  82. client_id: %github.client_id%
  83. client_secret: %github.client_secret%
  84. nelmio_solarium: ~
  85. parameters:
  86. session.flashbag.class: Symfony\Component\HttpFoundation\Session\Flash\FlashBag