config.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. trusted_proxies: %trusted_proxies%
  21. trusted_hosts: %trusted_hosts%
  22. http_method_override: true
  23. fragments: ~
  24. # Twig Configuration
  25. twig:
  26. debug: %kernel.debug%
  27. strict_variables: %kernel.debug%
  28. globals:
  29. google_analytics: %google_analytics%
  30. packagist_host: %packagist_host%
  31. # Assetic Configuration
  32. assetic:
  33. debug: %kernel.debug%
  34. use_controller: false
  35. filters:
  36. cssrewrite: ~
  37. closure:
  38. jar: %kernel.root_dir%/java/compiler.jar
  39. yui_css:
  40. jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
  41. # Doctrine Configuration
  42. doctrine:
  43. dbal:
  44. driver: %database_driver%
  45. host: %database_host%
  46. dbname: %database_name%
  47. user: %database_user%
  48. password: %database_password%
  49. charset: UTF8
  50. orm:
  51. auto_generate_proxy_classes: %kernel.debug%
  52. auto_mapping: true
  53. snc_redis:
  54. clients:
  55. default:
  56. type: predis
  57. alias: default
  58. dsn: %redis_dsn%
  59. # Swiftmailer Configuration
  60. swiftmailer:
  61. transport: %mailer_transport%
  62. host: %mailer_host%
  63. username: %mailer_user%
  64. password: %mailer_password%
  65. spool: { type: memory }
  66. fos_user:
  67. db_driver: orm
  68. firewall_name: main
  69. user_class: Packagist\WebBundle\Entity\User
  70. use_username_form_type: true
  71. from_email:
  72. address: %mailer_from_email%
  73. sender_name: %mailer_from_name%
  74. registration:
  75. form:
  76. handler: packagist.form.handler.registration
  77. profile:
  78. form:
  79. type: packagist_user_profile
  80. hwi_oauth:
  81. firewall_name: 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. resource_owners:
  87. github:
  88. type: github
  89. client_id: %github.client_id%
  90. client_secret: %github.client_secret%
  91. nelmio_solarium: ~