config.yml 2.4 KB

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