config.yml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. imports:
  2. - { resource: parameters.yml }
  3. - { resource: security.yml }
  4. - { resource: services.yml }
  5. - { resource: "bundles/friendsofsymfony/rest-bundle/config.yml" }
  6. - { resource: "bundles/ik/webservice-bundle/parameters.yml" }
  7. - { resource: "bundles/hwi/oauth-bundle/parameters.yml" }
  8. - { resource: "@BaseOAuthClientBundle/Resources/config/services.yml" }
  9. - { resource: "@BaseOAuthClientBundle/Resources/config/hwioauthbundle/services.yml" }
  10. - { resource: "@BaseOAuthClientBundle/Resources/config/hwioauthbundle/config.yml" }
  11. - { resource: "@WebserviceBundle/Resources/config/services.yml" }
  12. - { resource: "@ExtraDataBundle/Resources/config/services.yml" }
  13. - { resource: "@OwnerVoterBundle/Resources/config/services.yml" }
  14. - { resource: "@RedisBundle/Resources/config/services.yml" }
  15. - { resource: "@StatsDBundle/Resources/config/services.yml" }
  16. - { resource: "@StatsBundle/Resources/config/services.yml" }
  17. - { resource: '@BaseAdminBundle/Resources/config/services.yml' }
  18. # Put parameters here that don't need to change on each machine where the app is deployed
  19. # http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
  20. parameters:
  21. locale: es
  22. framework:
  23. #esi: ~
  24. translator: { fallbacks: ['%locale%'] }
  25. secret: '%secret%'
  26. router:
  27. resource: '%kernel.root_dir%/config/routing.yml'
  28. strict_requirements: ~
  29. form: ~
  30. csrf_protection: ~
  31. validation: { enable_annotations: true }
  32. #serializer: { enable_annotations: true }
  33. templating:
  34. engines: ['twig']
  35. default_locale: '%locale%'
  36. trusted_hosts: ~
  37. session:
  38. name: flowdat_stats_session
  39. # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  40. handler_id: session.handler.pdo
  41. # handler_id: session.handler.native_file
  42. save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
  43. fragments: ~
  44. http_method_override: true
  45. assets: ~
  46. php_errors:
  47. log: true
  48. # Twig Configuration
  49. twig:
  50. debug: '%kernel.debug%'
  51. strict_variables: '%kernel.debug%'
  52. # Doctrine Configuration
  53. doctrine:
  54. dbal:
  55. driver: pdo_mysql
  56. host: '%database_host%'
  57. port: '%database_port%'
  58. dbname: '%database_name%'
  59. user: '%database_user%'
  60. password: '%database_password%'
  61. charset: UTF8
  62. # if using pdo_sqlite as your database driver:
  63. # 1. add the path in parameters.yml
  64. # e.g. database_path: "%kernel.root_dir%/../var/data/data.sqlite"
  65. # 2. Uncomment database_path in parameters.yml.dist
  66. # 3. Uncomment next line:
  67. #path: '%database_path%'
  68. orm:
  69. auto_generate_proxy_classes: '%kernel.debug%'
  70. naming_strategy: doctrine.orm.naming_strategy.underscore
  71. auto_mapping: true
  72. # Swiftmailer Configuration
  73. swiftmailer:
  74. transport: '%mailer_transport%'
  75. host: '%mailer_host%'
  76. username: '%mailer_user%'
  77. password: '%mailer_password%'
  78. spool: { type: memory }
  79. sonata_block:
  80. default_contexts: [sonata_page_bundle]
  81. blocks:
  82. sonata.admin.block.admin_list:
  83. contexts: [admin]
  84. sonata_admin:
  85. templates:
  86. layout: BaseAdminBundle::standard_layout.html.twig
  87. user_block: BaseOAuthClientBundle:Core:oauth_user_block.html.twig