full.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. $container->loadFromExtension('framework', array(
  3. 'secret' => 's3cr3t',
  4. 'default_locale' => 'fr',
  5. 'form' => array(
  6. 'csrf_protection' => array(
  7. 'field_name' => '_csrf',
  8. ),
  9. ),
  10. 'http_method_override' => false,
  11. 'trusted_proxies' => array('127.0.0.1', '10.0.0.1'),
  12. 'csrf_protection' => array(
  13. 'enabled' => true,
  14. ),
  15. 'esi' => array(
  16. 'enabled' => true,
  17. ),
  18. 'ssi' => array(
  19. 'enabled' => true,
  20. ),
  21. 'profiler' => array(
  22. 'only_exceptions' => true,
  23. 'enabled' => false,
  24. ),
  25. 'router' => array(
  26. 'resource' => '%kernel.root_dir%/config/routing.xml',
  27. 'type' => 'xml',
  28. ),
  29. 'session' => array(
  30. 'storage_id' => 'session.storage.native',
  31. 'handler_id' => 'session.handler.native_file',
  32. 'name' => '_SYMFONY',
  33. 'cookie_lifetime' => 86400,
  34. 'cookie_path' => '/',
  35. 'cookie_domain' => 'example.com',
  36. 'cookie_secure' => true,
  37. 'cookie_httponly' => false,
  38. 'use_cookies' => true,
  39. 'gc_maxlifetime' => 90000,
  40. 'gc_divisor' => 108,
  41. 'gc_probability' => 1,
  42. 'save_path' => '/path/to/sessions',
  43. ),
  44. 'templating' => array(
  45. 'cache' => '/path/to/cache',
  46. 'engines' => array('php', 'twig'),
  47. 'loader' => array('loader.foo', 'loader.bar'),
  48. 'form' => array(
  49. 'resources' => array('theme1', 'theme2'),
  50. ),
  51. 'hinclude_default_template' => 'global_hinclude_template',
  52. ),
  53. 'translator' => array(
  54. 'enabled' => true,
  55. 'fallback' => 'fr',
  56. 'paths' => array('%kernel.root_dir%/Fixtures/translations'),
  57. ),
  58. 'validation' => array(
  59. 'enabled' => true,
  60. 'cache' => 'validator.mapping.cache.doctrine.apc',
  61. ),
  62. 'annotations' => array(
  63. 'cache' => 'file',
  64. 'debug' => true,
  65. 'file_cache_dir' => '%kernel.cache_dir%/annotations',
  66. ),
  67. 'serializer' => array(
  68. 'enabled' => true,
  69. 'enable_annotations' => true,
  70. 'cache' => 'serializer.mapping.cache.apc',
  71. 'name_converter' => 'serializer.name_converter.camel_case_to_snake_case',
  72. ),
  73. 'ide' => 'file%%link%%format',
  74. 'request' => array(
  75. 'formats' => array(
  76. 'csv' => array(
  77. 'text/csv',
  78. 'text/plain',
  79. ),
  80. 'pdf' => 'application/pdf',
  81. ),
  82. ),
  83. ));