config.yml 3.5 KB

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