config.yml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. trusted_proxies: ~
  33. session:
  34. name: flowdat_stats_session
  35. # http://symfony.com/doc/current/reference/configuration/framework.html#handler-id
  36. handler_id: session.handler.native_file
  37. save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
  38. fragments: ~
  39. http_method_override: true
  40. assets: ~
  41. php_errors:
  42. log: true
  43. # Twig Configuration
  44. twig:
  45. debug: '%kernel.debug%'
  46. strict_variables: '%kernel.debug%'
  47. # Doctrine Configuration
  48. doctrine:
  49. dbal:
  50. driver: pdo_mysql
  51. host: '%database_host%'
  52. port: '%database_port%'
  53. dbname: '%database_name%'
  54. user: '%database_user%'
  55. password: '%database_password%'
  56. charset: UTF8
  57. # if using pdo_sqlite as your database driver:
  58. # 1. add the path in parameters.yml
  59. # e.g. database_path: "%kernel.root_dir%/../var/data/data.sqlite"
  60. # 2. Uncomment database_path in parameters.yml.dist
  61. # 3. Uncomment next line:
  62. #path: '%database_path%'
  63. orm:
  64. auto_generate_proxy_classes: '%kernel.debug%'
  65. naming_strategy: doctrine.orm.naming_strategy.underscore
  66. auto_mapping: true
  67. # Swiftmailer Configuration
  68. swiftmailer:
  69. transport: '%mailer_transport%'
  70. host: '%mailer_host%'
  71. username: '%mailer_user%'
  72. password: '%mailer_password%'
  73. spool: { type: memory }
  74. sonata_block:
  75. default_contexts: [sonata_page_bundle]
  76. blocks:
  77. sonata.admin.block.admin_list:
  78. contexts: [admin]
  79. sonata_admin:
  80. templates:
  81. layout: BaseAdminBundle::standard_layout.html.twig
  82. user_block: BaseOAuthClientBundle:Core:oauth_user_block.html.twig