config.yml 3.2 KB

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