full.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:framework="http://symfony.com/schema/dic/symfony"
  5. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
  6. http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
  7. <framework:config secret="s3cr3t" ide="file%%link%%format" default-locale="fr" trusted-proxies="127.0.0.1, 10.0.0.1" http-method-override="false">
  8. <framework:csrf-protection enabled="true" />
  9. <framework:form>
  10. <framework:csrf-protection field-name="_csrf"/>
  11. </framework:form>
  12. <framework:esi enabled="true" />
  13. <framework:ssi enabled="true" />
  14. <framework:profiler only-exceptions="true" enabled="false" />
  15. <framework:router resource="%kernel.root_dir%/config/routing.xml" type="xml" />
  16. <framework:session gc-maxlifetime="90000" gc-probability="1" gc-divisor="108" storage-id="session.storage.native" handler-id="session.handler.native_file" name="_SYMFONY" cookie-lifetime="86400" cookie-path="/" cookie-domain="example.com" cookie-secure="true" cookie-httponly="false" use-cookies="true" save-path="/path/to/sessions" />
  17. <framework:request>
  18. <framework:format name="csv">
  19. <framework:mime-type>text/csv</framework:mime-type>
  20. <framework:mime-type>text/plain</framework:mime-type>
  21. </framework:format>
  22. <framework:format name="pdf">
  23. <framework:mime-type>application/pdf</framework:mime-type>
  24. </framework:format>
  25. </framework:request>
  26. <framework:templating cache="/path/to/cache" hinclude-default-template="global_hinclude_template">
  27. <framework:loader>loader.foo</framework:loader>
  28. <framework:loader>loader.bar</framework:loader>
  29. <framework:engine>php</framework:engine>
  30. <framework:engine>twig</framework:engine>
  31. <framework:form>
  32. <framework:resource>theme1</framework:resource>
  33. <framework:resource>theme2</framework:resource>
  34. </framework:form>
  35. </framework:templating>
  36. <framework:translator enabled="true" fallback="fr" logging="true">
  37. <framework:path>%kernel.root_dir%/Fixtures/translations</framework:path>
  38. </framework:translator>
  39. <framework:validation enabled="true" cache="validator.mapping.cache.doctrine.apc" />
  40. <framework:annotations cache="file" debug="true" file-cache-dir="%kernel.cache_dir%/annotations" />
  41. <framework:serializer enabled="true" enable-annotations="true" cache="serializer.mapping.cache.apc" name-converter="serializer.name_converter.camel_case_to_snake_case" />
  42. </framework:config>
  43. </container>