config.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4. framework:
  5. secret: %secret%
  6. router: { resource: "%kernel.root_dir%/config/routing.yml" }
  7. form: true
  8. csrf_protection: true
  9. validation: { enable_annotations: true }
  10. translator: { fallback: en }
  11. templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
  12. default_locale: %locale%
  13. session:
  14. name: packagist
  15. lifetime: 3600
  16. # Twig Configuration
  17. twig:
  18. debug: %kernel.debug%
  19. strict_variables: %kernel.debug%
  20. globals:
  21. google_analytics: %google_analytics%
  22. # Assetic Configuration
  23. assetic:
  24. debug: %kernel.debug%
  25. use_controller: false
  26. filters:
  27. cssrewrite: ~
  28. closure:
  29. jar: %kernel.root_dir%/java/compiler.jar
  30. yui_css:
  31. jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
  32. # Doctrine Configuration
  33. doctrine:
  34. dbal:
  35. driver: %database_driver%
  36. host: %database_host%
  37. dbname: %database_name%
  38. user: %database_user%
  39. password: %database_password%
  40. charset: UTF8
  41. orm:
  42. auto_generate_proxy_classes: %kernel.debug%
  43. auto_mapping: true
  44. snc_redis:
  45. clients:
  46. default:
  47. type: predis
  48. alias: default
  49. dsn: %redis_dsn%
  50. # Swiftmailer Configuration
  51. swiftmailer:
  52. transport: %mailer_transport%
  53. host: %mailer_host%
  54. username: %mailer_user%
  55. password: %mailer_password%
  56. fos_user:
  57. db_driver: orm
  58. firewall_name: main
  59. user_class: Packagist\WebBundle\Entity\User
  60. use_username_form_type: true
  61. from_email:
  62. address: %mailer_from_email%
  63. sender_name: %mailer_from_name%
  64. registration:
  65. form:
  66. handler: packagist.form.handler.registration
  67. hwi_oauth:
  68. firewall_name: main
  69. connect:
  70. account_connector: packagist.user_provider
  71. registration_form_handler: packagist.oauth.registration_form_handler
  72. registration_form: packagist.oauth.registration_form
  73. resource_owners:
  74. github:
  75. type: github
  76. client_id: %github.client_id%
  77. client_secret: %github.client_secret%
  78. scope: ""
  79. nelmio_solarium:
  80. adapter: ~
  81. parameters:
  82. session.flashbag.class: Symfony\Component\HttpFoundation\Session\Flash\FlashBag