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. cookie_lifetime: 3600
  18. trusted_proxies: %trusted_proxies%
  19. http_method_override: true
  20. fragments: ~
  21. # Twig Configuration
  22. twig:
  23. debug: %kernel.debug%
  24. strict_variables: %kernel.debug%
  25. globals:
  26. google_analytics: %google_analytics%
  27. packagist_host: %packagist_host%
  28. # Assetic Configuration
  29. assetic:
  30. debug: %kernel.debug%
  31. use_controller: false
  32. filters:
  33. cssrewrite: ~
  34. closure:
  35. jar: %kernel.root_dir%/java/compiler.jar
  36. yui_css:
  37. jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
  38. # Doctrine Configuration
  39. doctrine:
  40. dbal:
  41. driver: %database_driver%
  42. host: %database_host%
  43. dbname: %database_name%
  44. user: %database_user%
  45. password: %database_password%
  46. charset: UTF8
  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. # Swiftmailer Configuration
  57. swiftmailer:
  58. transport: %mailer_transport%
  59. host: %mailer_host%
  60. username: %mailer_user%
  61. password: %mailer_password%
  62. spool: { type: memory }
  63. fos_user:
  64. db_driver: orm
  65. firewall_name: main
  66. user_class: Packagist\WebBundle\Entity\User
  67. use_username_form_type: true
  68. from_email:
  69. address: %mailer_from_email%
  70. sender_name: %mailer_from_name%
  71. registration:
  72. form:
  73. handler: packagist.form.handler.registration
  74. profile:
  75. form:
  76. type: packagist_user_profile
  77. hwi_oauth:
  78. firewall_name: main
  79. connect:
  80. account_connector: packagist.user_provider
  81. registration_form_handler: packagist.oauth.registration_form_handler
  82. registration_form: packagist.oauth.registration_form
  83. resource_owners:
  84. github:
  85. type: github
  86. client_id: %github.client_id%
  87. client_secret: %github.client_secret%
  88. nelmio_solarium: ~