config.yml 2.7 KB

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