config.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. lifetime: 3600
  18. # Twig Configuration
  19. twig:
  20. debug: %kernel.debug%
  21. strict_variables: %kernel.debug%
  22. globals:
  23. google_analytics: %google_analytics%
  24. packagist_host: %packagist_host%
  25. # Assetic Configuration
  26. assetic:
  27. debug: %kernel.debug%
  28. use_controller: false
  29. filters:
  30. cssrewrite: ~
  31. closure:
  32. jar: %kernel.root_dir%/java/compiler.jar
  33. yui_css:
  34. jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
  35. # Doctrine Configuration
  36. doctrine:
  37. dbal:
  38. driver: %database_driver%
  39. host: %database_host%
  40. dbname: %database_name%
  41. user: %database_user%
  42. password: %database_password%
  43. charset: UTF8
  44. orm:
  45. auto_generate_proxy_classes: %kernel.debug%
  46. auto_mapping: true
  47. snc_redis:
  48. clients:
  49. default:
  50. type: predis
  51. alias: default
  52. dsn: %redis_dsn%
  53. # Swiftmailer Configuration
  54. swiftmailer:
  55. transport: %mailer_transport%
  56. host: %mailer_host%
  57. username: %mailer_user%
  58. password: %mailer_password%
  59. fos_user:
  60. db_driver: orm
  61. firewall_name: main
  62. user_class: Packagist\WebBundle\Entity\User
  63. use_username_form_type: true
  64. from_email:
  65. address: %mailer_from_email%
  66. sender_name: %mailer_from_name%
  67. registration:
  68. form:
  69. handler: packagist.form.handler.registration
  70. hwi_oauth:
  71. firewall_name: main
  72. connect:
  73. account_connector: packagist.user_provider
  74. registration_form_handler: packagist.oauth.registration_form_handler
  75. registration_form: packagist.oauth.registration_form
  76. resource_owners:
  77. github:
  78. type: github
  79. client_id: %github.client_id%
  80. client_secret: %github.client_secret%
  81. nelmio_solarium:
  82. adapter: ~
  83. parameters:
  84. session.flashbag.class: Symfony\Component\HttpFoundation\Session\Flash\FlashBag