framework.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # see https://symfony.com/doc/current/reference/configuration/framework.html
  2. framework:
  3. secret: '%env(APP_SECRET)%'
  4. #csrf_protection: true
  5. http_method_override: false
  6. handle_all_throwables: true
  7. # Enables session support. Note that the session will ONLY be started if you read or write from it.
  8. # Remove or comment this section to explicitly disable session support.
  9. session:
  10. handler_id: null
  11. cookie_secure: auto
  12. cookie_samesite: lax
  13. storage_factory_id: session.storage.factory.native
  14. #esi: true
  15. #fragments: true
  16. php_errors:
  17. log: true
  18. http_client:
  19. scoped_clients:
  20. siret_checking:
  21. base_uri: 'https://entreprise.data.gouv.fr/api/sirene/v3/etablissements/'
  22. openstreetmap:
  23. base_uri: 'https://nominatim.openstreetmap.org/'
  24. dolibarr_client:
  25. base_uri: '%env(DOLIBARR_API_BASE_URI)%'
  26. headers:
  27. DOLAPIKEY: '%env(DOLIBARR_API_TOKEN)%'
  28. Accept: 'application/json'
  29. typo3_client:
  30. base_uri: '%env(TYPO3_BASE_URI)%'
  31. headers:
  32. Content-Type: 'application/json'
  33. Accept: 'application/json'
  34. mobyt_client:
  35. base_uri: '%env(MOBYT_API_BASE_URI)%'
  36. headers:
  37. Content-Type: 'application/json'
  38. apiLegacyClient:
  39. base_uri: '%env(API_LEG_BASE_URL)%'
  40. when@test:
  41. framework:
  42. test: true
  43. # session:
  44. # storage_factory_id: session.storage.factory.mock_file