diff --git a/composer.json b/composer.json index 0980f025..c0c8463b 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,7 @@ "james-heinrich/getid3": "^1.9", "jms/serializer": "^3.1.1", "jms/serializer-bundle": "^3.10.0", + "league/flysystem-bundle": "^3.0", "lexik/jwt-authentication-bundle": "^2.13", "nelmio/cors-bundle": "^2.2", "phpdocumentor/reflection-docblock": "^5.2", @@ -83,7 +84,7 @@ "pimple/pimple": "*", "rector/rector": "^0.14.5", "rezozero/crypto": "^1.0.0", - "rezozero/intervention-request-bundle": "~2.0.1", + "rezozero/intervention-request-bundle": "~3.0.0 || dev-develop", "rezozero/tree-walker": "^1.3.0", "roadiz/doc-generator": "~2.0.0", "roadiz/documents": "~2.1.0 || dev-develop", diff --git a/config/bundles.php b/config/bundles.php index 65b02d09..04eba879 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -20,6 +20,7 @@ JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true], Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle::class => ['all' => true], Rollerworks\Bundle\PasswordStrengthBundle\RollerworksPasswordStrengthBundle::class => ['all' => true], + League\FlysystemBundle\FlysystemBundle::class => ['all' => true], RZ\InterventionRequestBundle\RZInterventionRequestBundle::class => ['all' => true], Sentry\SentryBundle\SentryBundle::class => ['all' => true], ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true], diff --git a/config/packages/flysystem.yaml b/config/packages/flysystem.yaml new file mode 100644 index 00000000..691fa49c --- /dev/null +++ b/config/packages/flysystem.yaml @@ -0,0 +1,7 @@ +# Read the documentation at https://github.com/thephpleague/flysystem-bundle/blob/master/docs/1-getting-started.md +flysystem: + storages: + intervention_request.storage: + adapter: 'local' + options: + directory: '%kernel.project_dir%/public/files'