mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Maintenance] Introduce Flysystem
Co-authored-by: Jakub Tobiasz <jakub.tobiasz@icloud.com>
This commit is contained in:
parent
de79fcda99
commit
36374223b2
11 changed files with 37 additions and 1 deletions
|
|
@ -20,7 +20,8 @@
|
||||||
"Doctrine\\DBAL\\Platforms\\MySQLPlatform",
|
"Doctrine\\DBAL\\Platforms\\MySQLPlatform",
|
||||||
"HWI\\Bundle\\OAuthBundle\\Connect\\AccountConnectorInterface",
|
"HWI\\Bundle\\OAuthBundle\\Connect\\AccountConnectorInterface",
|
||||||
"HWI\\Bundle\\OAuthBundle\\OAuth\\Response\\UserResponseInterface",
|
"HWI\\Bundle\\OAuthBundle\\OAuth\\Response\\UserResponseInterface",
|
||||||
"HWI\\Bundle\\OAuthBundle\\Security\\Core\\User\\OAuthAwareUserProviderInterface"
|
"HWI\\Bundle\\OAuthBundle\\Security\\Core\\User\\OAuthAwareUserProviderInterface",
|
||||||
|
"League\\Flysystem\\FilesystemOperator"
|
||||||
],
|
],
|
||||||
"php-core-extensions" : [
|
"php-core-extensions" : [
|
||||||
"Core",
|
"Core",
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@
|
||||||
"knplabs/knp-menu": "^3.1",
|
"knplabs/knp-menu": "^3.1",
|
||||||
"knplabs/knp-menu-bundle": "^3.0",
|
"knplabs/knp-menu-bundle": "^3.0",
|
||||||
"laminas/laminas-stdlib": "^3.3.1",
|
"laminas/laminas-stdlib": "^3.3.1",
|
||||||
|
"league/flysystem-bundle": "^2.4",
|
||||||
"lexik/jwt-authentication-bundle": "^2.11",
|
"lexik/jwt-authentication-bundle": "^2.11",
|
||||||
"liip/imagine-bundle": "^2.3",
|
"liip/imagine-bundle": "^2.3",
|
||||||
"pagerfanta/pagerfanta": "^3.0",
|
"pagerfanta/pagerfanta": "^3.0",
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ return [
|
||||||
FOS\RestBundle\FOSRestBundle::class => ['all' => true],
|
FOS\RestBundle\FOSRestBundle::class => ['all' => true],
|
||||||
Knp\Bundle\GaufretteBundle\KnpGaufretteBundle::class => ['all' => true],
|
Knp\Bundle\GaufretteBundle\KnpGaufretteBundle::class => ['all' => true],
|
||||||
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
|
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
|
||||||
|
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
|
||||||
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
|
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
|
||||||
Payum\Bundle\PayumBundle\PayumBundle::class => ['all' => true],
|
Payum\Bundle\PayumBundle\PayumBundle::class => ['all' => true],
|
||||||
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
|
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
|
||||||
|
|
|
||||||
6
config/packages/flysystem.yaml
Executable file
6
config/packages/flysystem.yaml
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
flysystem:
|
||||||
|
storages:
|
||||||
|
sylius.storage:
|
||||||
|
adapter: 'local'
|
||||||
|
options:
|
||||||
|
directory: '%sylius_core.images_dir%'
|
||||||
|
|
@ -21,6 +21,7 @@ use FOS\RestBundle\FOSRestBundle;
|
||||||
use JMS\SerializerBundle\JMSSerializerBundle;
|
use JMS\SerializerBundle\JMSSerializerBundle;
|
||||||
use Knp\Bundle\GaufretteBundle\KnpGaufretteBundle;
|
use Knp\Bundle\GaufretteBundle\KnpGaufretteBundle;
|
||||||
use Knp\Bundle\MenuBundle\KnpMenuBundle;
|
use Knp\Bundle\MenuBundle\KnpMenuBundle;
|
||||||
|
use League\FlysystemBundle\FlysystemBundle;
|
||||||
use Liip\ImagineBundle\LiipImagineBundle;
|
use Liip\ImagineBundle\LiipImagineBundle;
|
||||||
use Payum\Bundle\PayumBundle\PayumBundle;
|
use Payum\Bundle\PayumBundle\PayumBundle;
|
||||||
use Sonata\BlockBundle\SonataBlockBundle;
|
use Sonata\BlockBundle\SonataBlockBundle;
|
||||||
|
|
@ -105,6 +106,7 @@ final class TestKernel extends BaseKernel
|
||||||
new JMSSerializerBundle(),
|
new JMSSerializerBundle(),
|
||||||
new FOSRestBundle(),
|
new FOSRestBundle(),
|
||||||
new KnpGaufretteBundle(),
|
new KnpGaufretteBundle(),
|
||||||
|
new FlysystemBundle(),
|
||||||
new LiipImagineBundle(),
|
new LiipImagineBundle(),
|
||||||
new PayumBundle(),
|
new PayumBundle(),
|
||||||
new StofDoctrineExtensionsBundle(),
|
new StofDoctrineExtensionsBundle(),
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ return [
|
||||||
Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle::class => ['all' => true],
|
Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle::class => ['all' => true],
|
||||||
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
|
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
|
||||||
Knp\Bundle\GaufretteBundle\KnpGaufretteBundle::class => ['all' => true],
|
Knp\Bundle\GaufretteBundle\KnpGaufretteBundle::class => ['all' => true],
|
||||||
|
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
|
||||||
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
|
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
|
||||||
Payum\Bundle\PayumBundle\PayumBundle::class => ['all' => true],
|
Payum\Bundle\PayumBundle\PayumBundle::class => ['all' => true],
|
||||||
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
|
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,13 @@ doctrine:
|
||||||
WEEK: Sylius\Bundle\CoreBundle\Doctrine\DQL\Week
|
WEEK: Sylius\Bundle\CoreBundle\Doctrine\DQL\Week
|
||||||
YEAR: Sylius\Bundle\CoreBundle\Doctrine\DQL\Year
|
YEAR: Sylius\Bundle\CoreBundle\Doctrine\DQL\Year
|
||||||
|
|
||||||
|
flysystem:
|
||||||
|
storages:
|
||||||
|
sylius.storage:
|
||||||
|
adapter: 'local'
|
||||||
|
options:
|
||||||
|
directory: '%sylius_core.images_dir%'
|
||||||
|
|
||||||
knp_gaufrette:
|
knp_gaufrette:
|
||||||
adapters:
|
adapters:
|
||||||
sylius_image:
|
sylius_image:
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ use Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle;
|
||||||
use FOS\RestBundle\FOSRestBundle;
|
use FOS\RestBundle\FOSRestBundle;
|
||||||
use JMS\SerializerBundle\JMSSerializerBundle;
|
use JMS\SerializerBundle\JMSSerializerBundle;
|
||||||
use Knp\Bundle\GaufretteBundle\KnpGaufretteBundle;
|
use Knp\Bundle\GaufretteBundle\KnpGaufretteBundle;
|
||||||
|
use League\FlysystemBundle\FlysystemBundle;
|
||||||
use Liip\ImagineBundle\LiipImagineBundle;
|
use Liip\ImagineBundle\LiipImagineBundle;
|
||||||
use Payum\Bundle\PayumBundle\PayumBundle;
|
use Payum\Bundle\PayumBundle\PayumBundle;
|
||||||
use Sonata\BlockBundle\SonataBlockBundle;
|
use Sonata\BlockBundle\SonataBlockBundle;
|
||||||
|
|
@ -103,6 +104,7 @@ final class TestKernel extends BaseKernel
|
||||||
new JMSSerializerBundle(),
|
new JMSSerializerBundle(),
|
||||||
new FOSRestBundle(),
|
new FOSRestBundle(),
|
||||||
new KnpGaufretteBundle(),
|
new KnpGaufretteBundle(),
|
||||||
|
new FlysystemBundle(),
|
||||||
new LiipImagineBundle(),
|
new LiipImagineBundle(),
|
||||||
new PayumBundle(),
|
new PayumBundle(),
|
||||||
new StofDoctrineExtensionsBundle(),
|
new StofDoctrineExtensionsBundle(),
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
"jms/serializer-bundle": "^3.5",
|
"jms/serializer-bundle": "^3.5",
|
||||||
"knplabs/gaufrette": "^0.8",
|
"knplabs/gaufrette": "^0.8",
|
||||||
"knplabs/knp-gaufrette-bundle": "^0.7",
|
"knplabs/knp-gaufrette-bundle": "^0.7",
|
||||||
|
"league/flysystem-bundle": "^2.4",
|
||||||
"liip/imagine-bundle": "^2.3",
|
"liip/imagine-bundle": "^2.3",
|
||||||
"sonata-project/block-bundle": "^4.2",
|
"sonata-project/block-bundle": "^4.2",
|
||||||
"swiftmailer/swiftmailer": "^6.2",
|
"swiftmailer/swiftmailer": "^6.2",
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
"php": "^8.0",
|
"php": "^8.0",
|
||||||
"enshrined/svg-sanitize": "^0.15.4",
|
"enshrined/svg-sanitize": "^0.15.4",
|
||||||
"knplabs/gaufrette": "^0.8",
|
"knplabs/gaufrette": "^0.8",
|
||||||
|
"league/flysystem": "^2.4",
|
||||||
"payum/payum": "^1.6",
|
"payum/payum": "^1.6",
|
||||||
"php-http/guzzle6-adapter": "^2.0",
|
"php-http/guzzle6-adapter": "^2.0",
|
||||||
"sylius/addressing": "^1.6",
|
"sylius/addressing": "^1.6",
|
||||||
|
|
|
||||||
13
symfony.lock
13
symfony.lock
|
|
@ -284,6 +284,19 @@
|
||||||
"lcobucci/jwt": {
|
"lcobucci/jwt": {
|
||||||
"version": "3.3.1"
|
"version": "3.3.1"
|
||||||
},
|
},
|
||||||
|
"league/flysystem-bundle": {
|
||||||
|
"version": "2.4",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes",
|
||||||
|
"branch": "main",
|
||||||
|
"version": "1.0",
|
||||||
|
"ref": "913dc3d7a5a1af0d2b044c5ac3a16e2f851d7380"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"config/packages/flysystem.yaml",
|
||||||
|
"var/storage/.gitignore"
|
||||||
|
]
|
||||||
|
},
|
||||||
"league/uri": {
|
"league/uri": {
|
||||||
"version": "5.3.0"
|
"version": "5.3.0"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue