full.php 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. $container->loadFromExtension('framework', array(
  3. 'secret' => 's3cr3t',
  4. 'form' => null,
  5. 'trust_proxy_headers' => true,
  6. 'trusted_proxies' => array('127.0.0.1', '10.0.0.1'),
  7. 'csrf_protection' => array(
  8. 'enabled' => true,
  9. 'field_name' => '_csrf',
  10. ),
  11. 'esi' => array(
  12. 'enabled' => true,
  13. ),
  14. 'profiler' => array(
  15. 'only_exceptions' => true,
  16. ),
  17. 'router' => array(
  18. 'resource' => '%kernel.root_dir%/config/routing.xml',
  19. 'type' => 'xml',
  20. ),
  21. 'session' => array(
  22. 'auto_start' => true,
  23. 'default_locale' => 'fr',
  24. 'storage_id' => 'session.storage.native',
  25. 'name' => '_SYMFONY',
  26. 'lifetime' => 86400,
  27. 'path' => '/',
  28. 'domain' => 'example.com',
  29. 'secure' => true,
  30. 'httponly' => true,
  31. ),
  32. 'templating' => array(
  33. 'assets_version' => 'SomeVersionScheme',
  34. 'assets_base_urls' => 'http://cdn.example.com',
  35. 'cache' => '/path/to/cache',
  36. 'engines' => array('php', 'twig'),
  37. 'loader' => array('loader.foo', 'loader.bar'),
  38. 'packages' => array(
  39. 'images' => array(
  40. 'version' => '1.0.0',
  41. 'base_urls' => array('http://images1.example.com', 'http://images2.example.com'),
  42. ),
  43. 'foo' => array(
  44. 'version' => '1.0.0',
  45. ),
  46. 'bar' => array(
  47. 'base_urls' => array('http://bar1.example.com', 'http://bar2.example.com'),
  48. ),
  49. ),
  50. 'form' => array(
  51. 'resources' => array('theme1', 'theme2')
  52. ),
  53. ),
  54. 'translator' => array(
  55. 'enabled' => true,
  56. 'fallback' => 'fr',
  57. ),
  58. 'validation' => array(
  59. 'enabled' => true,
  60. 'cache' => 'apc',
  61. ),
  62. 'annotations' => array(
  63. 'cache' => 'file',
  64. 'debug' => true,
  65. 'file_cache_dir' => '%kernel.cache_dir%/annotations',
  66. ),
  67. 'ide' => 'file%%link%%format'
  68. ));