config.yml 3.0 KB

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