config.yml 2.6 KB

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