config.yml 3.3 KB

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