config.yml 3.1 KB

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