mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +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",
|
||||
"HWI\\Bundle\\OAuthBundle\\Connect\\AccountConnectorInterface",
|
||||
"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" : [
|
||||
"Core",
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
"knplabs/knp-menu": "^3.1",
|
||||
"knplabs/knp-menu-bundle": "^3.0",
|
||||
"laminas/laminas-stdlib": "^3.3.1",
|
||||
"league/flysystem-bundle": "^2.4",
|
||||
"lexik/jwt-authentication-bundle": "^2.11",
|
||||
"liip/imagine-bundle": "^2.3",
|
||||
"pagerfanta/pagerfanta": "^3.0",
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ return [
|
|||
FOS\RestBundle\FOSRestBundle::class => ['all' => true],
|
||||
Knp\Bundle\GaufretteBundle\KnpGaufretteBundle::class => ['all' => true],
|
||||
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
|
||||
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
|
||||
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
|
||||
Payum\Bundle\PayumBundle\PayumBundle::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 Knp\Bundle\GaufretteBundle\KnpGaufretteBundle;
|
||||
use Knp\Bundle\MenuBundle\KnpMenuBundle;
|
||||
use League\FlysystemBundle\FlysystemBundle;
|
||||
use Liip\ImagineBundle\LiipImagineBundle;
|
||||
use Payum\Bundle\PayumBundle\PayumBundle;
|
||||
use Sonata\BlockBundle\SonataBlockBundle;
|
||||
|
|
@ -105,6 +106,7 @@ final class TestKernel extends BaseKernel
|
|||
new JMSSerializerBundle(),
|
||||
new FOSRestBundle(),
|
||||
new KnpGaufretteBundle(),
|
||||
new FlysystemBundle(),
|
||||
new LiipImagineBundle(),
|
||||
new PayumBundle(),
|
||||
new StofDoctrineExtensionsBundle(),
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ return [
|
|||
Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle::class => ['all' => true],
|
||||
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
|
||||
Knp\Bundle\GaufretteBundle\KnpGaufretteBundle::class => ['all' => true],
|
||||
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
|
||||
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
|
||||
Payum\Bundle\PayumBundle\PayumBundle::class => ['all' => true],
|
||||
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
|
||||
|
|
|
|||
|
|
@ -44,6 +44,13 @@ doctrine:
|
|||
WEEK: Sylius\Bundle\CoreBundle\Doctrine\DQL\Week
|
||||
YEAR: Sylius\Bundle\CoreBundle\Doctrine\DQL\Year
|
||||
|
||||
flysystem:
|
||||
storages:
|
||||
sylius.storage:
|
||||
adapter: 'local'
|
||||
options:
|
||||
directory: '%sylius_core.images_dir%'
|
||||
|
||||
knp_gaufrette:
|
||||
adapters:
|
||||
sylius_image:
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ use Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle;
|
|||
use FOS\RestBundle\FOSRestBundle;
|
||||
use JMS\SerializerBundle\JMSSerializerBundle;
|
||||
use Knp\Bundle\GaufretteBundle\KnpGaufretteBundle;
|
||||
use League\FlysystemBundle\FlysystemBundle;
|
||||
use Liip\ImagineBundle\LiipImagineBundle;
|
||||
use Payum\Bundle\PayumBundle\PayumBundle;
|
||||
use Sonata\BlockBundle\SonataBlockBundle;
|
||||
|
|
@ -103,6 +104,7 @@ final class TestKernel extends BaseKernel
|
|||
new JMSSerializerBundle(),
|
||||
new FOSRestBundle(),
|
||||
new KnpGaufretteBundle(),
|
||||
new FlysystemBundle(),
|
||||
new LiipImagineBundle(),
|
||||
new PayumBundle(),
|
||||
new StofDoctrineExtensionsBundle(),
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
"jms/serializer-bundle": "^3.5",
|
||||
"knplabs/gaufrette": "^0.8",
|
||||
"knplabs/knp-gaufrette-bundle": "^0.7",
|
||||
"league/flysystem-bundle": "^2.4",
|
||||
"liip/imagine-bundle": "^2.3",
|
||||
"sonata-project/block-bundle": "^4.2",
|
||||
"swiftmailer/swiftmailer": "^6.2",
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
"php": "^8.0",
|
||||
"enshrined/svg-sanitize": "^0.15.4",
|
||||
"knplabs/gaufrette": "^0.8",
|
||||
"league/flysystem": "^2.4",
|
||||
"payum/payum": "^1.6",
|
||||
"php-http/guzzle6-adapter": "^2.0",
|
||||
"sylius/addressing": "^1.6",
|
||||
|
|
|
|||
13
symfony.lock
13
symfony.lock
|
|
@ -284,6 +284,19 @@
|
|||
"lcobucci/jwt": {
|
||||
"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": {
|
||||
"version": "5.3.0"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue