config.yml 2.8 KB

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