Merge branch 'Marvin'

This commit is contained in:
Olivier PARPAILLON
2024-11-27 13:18:37 +01:00
16 changed files with 499 additions and 125 deletions

View File

@@ -0,0 +1,11 @@
services:
# Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories)
Psr\Http\Message\RequestFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\ResponseFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\ServerRequestFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\StreamFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\UploadedFileFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\UriFactoryInterface: '@nyholm.psr7.psr17_factory'
nyholm.psr7.psr17_factory:
class: Nyholm\Psr7\Factory\Psr17Factory

View File

@@ -0,0 +1,10 @@
vich_uploader:
db_driver: orm
mappings:
sortie_images:
uri_prefix: /img/sortie
upload_destination: '%kernel.project_dir%/public/img/sortie'
namer:
service: Vich\UploaderBundle\Naming\UniqidNamer
delete_on_update: true
delete_on_remove: true