From 4e25013d61a0f74dcd49b519c376ed62598e19cb Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Tue, 9 Mar 2021 18:57:34 +0100 Subject: [PATCH 01/31] Make PHP Stan required on dev --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index f3a28d0..8851e8f 100644 --- a/composer.json +++ b/composer.json @@ -8,8 +8,7 @@ "php": "~7.4", "sylius/sylius": "^1.8", "gedmo/doctrine-extensions": "^2.4.12", - "monsieurbiz/sylius-rich-editor-plugin": "^2.0@RC", - "phpstan/phpstan-webmozart-assert": "^0.12.7" + "monsieurbiz/sylius-rich-editor-plugin": "^2.0@RC" }, "require-dev": { "behat/behat": "^3.6.1", @@ -44,7 +43,8 @@ "symfony/dotenv": "^4.4", "symfony/flex": "^1.7", "symfony/web-profiler-bundle": "^4.4", - "phpmd/phpmd": "@stable" + "phpmd/phpmd": "@stable", + "phpstan/phpstan-webmozart-assert": "^0.12.7" }, "prefer-stable": true, "autoload": { From 28a684a9dedaf0bbf4de4f63dc7c0c986ca7cec9 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Tue, 9 Mar 2021 18:58:24 +0100 Subject: [PATCH 02/31] Update gedmo doctrine extension versions --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8851e8f..c890c06 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "require": { "php": "~7.4", "sylius/sylius": "^1.8", - "gedmo/doctrine-extensions": "^2.4.12", + "gedmo/doctrine-extensions": "^2.4.12 || ^3.0", "monsieurbiz/sylius-rich-editor-plugin": "^2.0@RC" }, "require-dev": { From 604d3fb111863b7d37a219077016ac6849aa66ff Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 11:34:30 +0100 Subject: [PATCH 03/31] Update test application with dynamic links --- tests/Application/.babelrc | 16 +- tests/Application/.env | 27 +- tests/Application/.env.test | 4 +- tests/Application/.eslintrc.js | 21 +- tests/Application/.gitignore | 44 +- tests/Application/.php-version | 1 - tests/Application/config/bundles.php | 69 +- tests/Application/config/jwt | 1 + .../Application/config/packages/_sylius.yaml | 24 +- tests/Application/config/packages/dev | 1 + .../config/packages/dev/framework.yaml | 3 - .../config/packages/dev/jms_serializer.yaml | 7 - .../config/packages/dev/monolog.yaml | 9 - .../config/packages/dev/nelmio_alice.yaml | 3 - .../config/packages/dev/routing.yaml | 3 - .../config/packages/dev/swiftmailer.yaml | 2 - .../config/packages/dev/web_profiler.yaml | 3 - .../Application/config/packages/doctrine.yaml | 24 +- .../config/packages/doctrine_migrations.yaml | 5 +- .../Application/config/packages/fos_rest.yaml | 12 +- .../config/packages/framework.yaml | 9 +- .../config/packages/jms_serializer.yaml | 5 +- .../packages/lexik_jwt_authentication.yaml | 1 + .../config/packages/liip_imagine.yaml | 7 +- .../monsieurbiz_sylius_cms_page_plugin.yaml | 1 - ...monsieurbiz_sylius_rich_editor_plugin.yaml | 2 - .../config/packages/nelmio_alice.yaml | 1 + .../Application/config/packages/routing.yaml | 4 +- .../Application/config/packages/security.yaml | 153 +-- .../packages/stof_doctrine_extensions.yaml | 5 +- .../config/packages/swiftmailer.yaml | 3 +- tests/Application/config/packages/test | 1 + .../test/fidry_alice_data_fixtures.yaml | 2 - .../config/packages/test/framework.yaml | 4 - .../config/packages/test/monolog.yaml | 6 - .../config/packages/test/nelmio_alice.yaml | 2 - .../config/packages/test/swiftmailer.yaml | 6 - .../config/packages/test/sylius_theme.yaml | 3 - .../config/packages/test/sylius_uploader.yaml | 3 - .../config/packages/test/web_profiler.yaml | 6 - tests/Application/config/packages/test_cached | 1 + .../config/packages/translation.yaml | 9 +- tests/Application/config/packages/twig.yaml | 13 +- .../config/packages/validator.yaml | 4 +- tests/Application/config/routes.yaml | 1 + tests/Application/config/routes/dev | 1 + tests/Application/config/routes/dev/twig.yaml | 3 - .../config/routes/dev/web_profiler.yaml | 7 - .../config/routes/liip_imagine.yaml | 3 +- .../monsieurbiz_sylius_cms_page_plugin.yaml | 1 - ...monsieurbiz_sylius_rich_editor_plugin.yaml | 3 - .../config/routes/sylius_admin.yaml | 4 +- .../config/routes/sylius_admin_api.yaml | 4 +- .../Application/config/routes/sylius_api.yaml | 4 +- .../config/routes/sylius_shop.yaml | 15 +- tests/Application/config/routes/test | 1 + .../routes/test/sylius_test_plugin.yaml | 5 - tests/Application/config/routes/test_cached | 1 + .../test_cached/sylius_test_plugin.yaml | 5 - tests/Application/config/secrets | 1 + tests/Application/config/services.yaml | 36 +- tests/Application/config/services_test.yaml | 3 +- .../config/services_test_cached.yaml | 1 + tests/Application/package.json | 59 +- tests/Application/public/.htaccess | 26 +- tests/Application/public/favicon.ico | Bin 32038 -> 48 bytes .../Application/public/media/image/.gitignore | 0 tests/Application/public/robots.txt | 5 +- tests/Application/src/Kernel.php | 22 +- tests/Application/symfony.lock | 891 +----------------- tests/Application/templates | 1 + tests/Application/templates/.gitignore | 0 tests/Application/translations | 1 + tests/Application/translations/.gitignore | 0 tests/Application/webpack.config.js | 1 + 75 files changed, 55 insertions(+), 1580 deletions(-) mode change 100644 => 120000 tests/Application/.babelrc mode change 100644 => 120000 tests/Application/.env mode change 100644 => 120000 tests/Application/.env.test mode change 100644 => 120000 tests/Application/.eslintrc.js mode change 100644 => 120000 tests/Application/.gitignore delete mode 120000 tests/Application/.php-version create mode 120000 tests/Application/config/jwt mode change 100644 => 120000 tests/Application/config/packages/_sylius.yaml create mode 120000 tests/Application/config/packages/dev delete mode 100644 tests/Application/config/packages/dev/framework.yaml delete mode 100644 tests/Application/config/packages/dev/jms_serializer.yaml delete mode 100644 tests/Application/config/packages/dev/monolog.yaml delete mode 100644 tests/Application/config/packages/dev/nelmio_alice.yaml delete mode 100644 tests/Application/config/packages/dev/routing.yaml delete mode 100644 tests/Application/config/packages/dev/swiftmailer.yaml delete mode 100644 tests/Application/config/packages/dev/web_profiler.yaml mode change 100644 => 120000 tests/Application/config/packages/doctrine.yaml mode change 100644 => 120000 tests/Application/config/packages/doctrine_migrations.yaml mode change 100644 => 120000 tests/Application/config/packages/fos_rest.yaml mode change 100644 => 120000 tests/Application/config/packages/framework.yaml mode change 100644 => 120000 tests/Application/config/packages/jms_serializer.yaml create mode 120000 tests/Application/config/packages/lexik_jwt_authentication.yaml mode change 100644 => 120000 tests/Application/config/packages/liip_imagine.yaml delete mode 120000 tests/Application/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml delete mode 100644 tests/Application/config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml create mode 120000 tests/Application/config/packages/nelmio_alice.yaml mode change 100644 => 120000 tests/Application/config/packages/routing.yaml mode change 100644 => 120000 tests/Application/config/packages/security.yaml mode change 100644 => 120000 tests/Application/config/packages/stof_doctrine_extensions.yaml mode change 100644 => 120000 tests/Application/config/packages/swiftmailer.yaml create mode 120000 tests/Application/config/packages/test delete mode 100644 tests/Application/config/packages/test/fidry_alice_data_fixtures.yaml delete mode 100644 tests/Application/config/packages/test/framework.yaml delete mode 100644 tests/Application/config/packages/test/monolog.yaml delete mode 100644 tests/Application/config/packages/test/nelmio_alice.yaml delete mode 100644 tests/Application/config/packages/test/swiftmailer.yaml delete mode 100644 tests/Application/config/packages/test/sylius_theme.yaml delete mode 100644 tests/Application/config/packages/test/sylius_uploader.yaml delete mode 100644 tests/Application/config/packages/test/web_profiler.yaml create mode 120000 tests/Application/config/packages/test_cached mode change 100644 => 120000 tests/Application/config/packages/translation.yaml mode change 100644 => 120000 tests/Application/config/packages/twig.yaml mode change 100644 => 120000 tests/Application/config/packages/validator.yaml mode change 100644 => 120000 tests/Application/config/routes.yaml create mode 120000 tests/Application/config/routes/dev delete mode 100644 tests/Application/config/routes/dev/twig.yaml delete mode 100644 tests/Application/config/routes/dev/web_profiler.yaml mode change 100644 => 120000 tests/Application/config/routes/liip_imagine.yaml delete mode 120000 tests/Application/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml delete mode 100644 tests/Application/config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml mode change 100644 => 120000 tests/Application/config/routes/sylius_admin.yaml mode change 100644 => 120000 tests/Application/config/routes/sylius_admin_api.yaml mode change 100644 => 120000 tests/Application/config/routes/sylius_api.yaml mode change 100644 => 120000 tests/Application/config/routes/sylius_shop.yaml create mode 120000 tests/Application/config/routes/test delete mode 100644 tests/Application/config/routes/test/sylius_test_plugin.yaml create mode 120000 tests/Application/config/routes/test_cached delete mode 100644 tests/Application/config/routes/test_cached/sylius_test_plugin.yaml create mode 120000 tests/Application/config/secrets mode change 100644 => 120000 tests/Application/config/services.yaml mode change 100644 => 120000 tests/Application/config/services_test.yaml create mode 120000 tests/Application/config/services_test_cached.yaml mode change 100644 => 120000 tests/Application/package.json mode change 100644 => 120000 tests/Application/public/.htaccess mode change 100644 => 120000 tests/Application/public/favicon.ico delete mode 100644 tests/Application/public/media/image/.gitignore mode change 100644 => 120000 tests/Application/public/robots.txt mode change 100644 => 120000 tests/Application/symfony.lock create mode 120000 tests/Application/templates delete mode 100644 tests/Application/templates/.gitignore create mode 120000 tests/Application/translations delete mode 100644 tests/Application/translations/.gitignore create mode 120000 tests/Application/webpack.config.js diff --git a/tests/Application/.babelrc b/tests/Application/.babelrc deleted file mode 100644 index e563a62..0000000 --- a/tests/Application/.babelrc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "presets": [ - ["env", { - "targets": { - "node": "6" - }, - "useBuiltIns": true - }] - ], - "plugins": [ - ["transform-object-rest-spread", { - "useBuiltIns": true - }] - ] -} diff --git a/tests/Application/.babelrc b/tests/Application/.babelrc new file mode 120000 index 0000000..b63c443 --- /dev/null +++ b/tests/Application/.babelrc @@ -0,0 +1 @@ +../../vendor/sylius/sylius/.babelrc \ No newline at end of file diff --git a/tests/Application/.env b/tests/Application/.env deleted file mode 100644 index 710007e..0000000 --- a/tests/Application/.env +++ /dev/null @@ -1,26 +0,0 @@ -# This file is a "template" of which env vars needs to be defined in your configuration or in an .env file -# Set variables here that may be different on each deployment target of the app, e.g. development, staging, production. -# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration - -COMPOSE_PROJECT_NAME=cms-page - -###> symfony/framework-bundle ### -APP_ENV=dev -APP_DEBUG=1 -APP_SECRET=EDITME -###< symfony/framework-bundle ### - -###> doctrine/doctrine-bundle ### -# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url -# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db" -# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls -# If you use Symfony binary this URL is overridden by it -DATABASE_URL=mysql://root@127.0.0.1/sylius?serverVersion=mariadb-10.5.5 -###< doctrine/doctrine-bundle ### - -###> symfony/swiftmailer-bundle ### -# For Gmail as a transport, use: "gmail://username:password@localhost" -# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" -# Delivery is disabled by default via "null://localhost" -MAILER_URL=smtp://localhost:1025 -###< symfony/swiftmailer-bundle ### diff --git a/tests/Application/.env b/tests/Application/.env new file mode 120000 index 0000000..b85f53f --- /dev/null +++ b/tests/Application/.env @@ -0,0 +1 @@ +../../vendor/sylius/sylius/.env \ No newline at end of file diff --git a/tests/Application/.env.test b/tests/Application/.env.test deleted file mode 100644 index 0aae619..0000000 --- a/tests/Application/.env.test +++ /dev/null @@ -1,3 +0,0 @@ -APP_SECRET='ch4mb3r0f5ecr3ts' - -KERNEL_CLASS='App\Kernel' diff --git a/tests/Application/.env.test b/tests/Application/.env.test new file mode 120000 index 0000000..c2049e9 --- /dev/null +++ b/tests/Application/.env.test @@ -0,0 +1 @@ +../../vendor/sylius/sylius/.env.test \ No newline at end of file diff --git a/tests/Application/.eslintrc.js b/tests/Application/.eslintrc.js deleted file mode 100644 index 92c4cee..0000000 --- a/tests/Application/.eslintrc.js +++ /dev/null @@ -1,20 +0,0 @@ -module.exports = { - extends: 'airbnb-base', - env: { - node: true, - }, - rules: { - 'object-shorthand': ['error', 'always', { - avoidQuotes: true, - avoidExplicitReturnArrows: true, - }], - 'function-paren-newline': ['error', 'consistent'], - 'max-len': ['warn', 120, 2, { - ignoreUrls: true, - ignoreComments: false, - ignoreRegExpLiterals: true, - ignoreStrings: true, - ignoreTemplateLiterals: true, - }], - }, -}; diff --git a/tests/Application/.eslintrc.js b/tests/Application/.eslintrc.js new file mode 120000 index 0000000..1fc7cb6 --- /dev/null +++ b/tests/Application/.eslintrc.js @@ -0,0 +1 @@ +../../vendor/sylius/sylius/.eslintrc.js \ No newline at end of file diff --git a/tests/Application/.gitignore b/tests/Application/.gitignore deleted file mode 100644 index 3f23404..0000000 --- a/tests/Application/.gitignore +++ /dev/null @@ -1,43 +0,0 @@ -/public/assets -/public/css -/public/js -/public/media -!/public/media/image/.gitkeep -/public/build - -/node_modules - -/etc/build/* -!/etc/build/.gitignore - -/behat.yml -/phpspec.yml - -/docker-compose.override.yaml -/docker-compose.override.yml -/docker/mysql/data/ - -###> symfony/framework-bundle ### -/.env.*.local -/.env.local -/.env.local.php -/config/secrets/prod/prod.decrypt.private.php -/public/bundles -/src/.preload.php -/var/ -/vendor/ -###< symfony/framework-bundle ### - -###> friendsofphp/php-cs-fixer ### -/.php_cs -/.php_cs.cache -###< friendsofphp/php-cs-fixer ### - -###> lexik/jwt-authentication-bundle ### -/config/jwt/*.pem -###< lexik/jwt-authentication-bundle ### - -###> phpunit/phpunit ### -/phpunit.xml -.phpunit.result.cache -###< phpunit/phpunit ### diff --git a/tests/Application/.gitignore b/tests/Application/.gitignore new file mode 120000 index 0000000..9b171bb --- /dev/null +++ b/tests/Application/.gitignore @@ -0,0 +1 @@ +../../vendor/sylius/sylius/.gitignore \ No newline at end of file diff --git a/tests/Application/.php-version b/tests/Application/.php-version deleted file mode 120000 index fffb853..0000000 --- a/tests/Application/.php-version +++ /dev/null @@ -1 +0,0 @@ -../../.php-version \ No newline at end of file diff --git a/tests/Application/config/bundles.php b/tests/Application/config/bundles.php index 20a97c1..e984843 100644 --- a/tests/Application/config/bundles.php +++ b/tests/Application/config/bundles.php @@ -11,65 +11,10 @@ declare(strict_types=1); -return [ - Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], - Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true], - Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true], - Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true], - Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true], - Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], - Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true], - Sylius\Bundle\OrderBundle\SyliusOrderBundle::class => ['all' => true], - Sylius\Bundle\MoneyBundle\SyliusMoneyBundle::class => ['all' => true], - Sylius\Bundle\CurrencyBundle\SyliusCurrencyBundle::class => ['all' => true], - Sylius\Bundle\LocaleBundle\SyliusLocaleBundle::class => ['all' => true], - Sylius\Bundle\ProductBundle\SyliusProductBundle::class => ['all' => true], - Sylius\Bundle\ChannelBundle\SyliusChannelBundle::class => ['all' => true], - Sylius\Bundle\AttributeBundle\SyliusAttributeBundle::class => ['all' => true], - Sylius\Bundle\TaxationBundle\SyliusTaxationBundle::class => ['all' => true], - Sylius\Bundle\ShippingBundle\SyliusShippingBundle::class => ['all' => true], - Sylius\Bundle\PaymentBundle\SyliusPaymentBundle::class => ['all' => true], - Sylius\Bundle\MailerBundle\SyliusMailerBundle::class => ['all' => true], - Sylius\Bundle\PromotionBundle\SyliusPromotionBundle::class => ['all' => true], - Sylius\Bundle\AddressingBundle\SyliusAddressingBundle::class => ['all' => true], - Sylius\Bundle\InventoryBundle\SyliusInventoryBundle::class => ['all' => true], - Sylius\Bundle\TaxonomyBundle\SyliusTaxonomyBundle::class => ['all' => true], - Sylius\Bundle\UserBundle\SyliusUserBundle::class => ['all' => true], - Sylius\Bundle\CustomerBundle\SyliusCustomerBundle::class => ['all' => true], - Sylius\Bundle\UiBundle\SyliusUiBundle::class => ['all' => true], - Sylius\Bundle\ReviewBundle\SyliusReviewBundle::class => ['all' => true], - Sylius\Bundle\CoreBundle\SyliusCoreBundle::class => ['all' => true], - Sylius\Bundle\ResourceBundle\SyliusResourceBundle::class => ['all' => true], - Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true], - winzou\Bundle\StateMachineBundle\winzouStateMachineBundle::class => ['all' => true], - Sonata\BlockBundle\SonataBlockBundle::class => ['all' => true], - Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle::class => ['all' => true], - JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true], - FOS\RestBundle\FOSRestBundle::class => ['all' => true], - Knp\Bundle\GaufretteBundle\KnpGaufretteBundle::class => ['all' => true], - Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true], - Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true], - Payum\Bundle\PayumBundle\PayumBundle::class => ['all' => true], - Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true], - WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle::class => ['all' => true], - Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true], - Sylius\Bundle\FixturesBundle\SyliusFixturesBundle::class => ['all' => true], - Sylius\Bundle\PayumBundle\SyliusPayumBundle::class => ['all' => true], - Sylius\Bundle\ThemeBundle\SyliusThemeBundle::class => ['all' => true], - Sylius\Bundle\AdminBundle\SyliusAdminBundle::class => ['all' => true], - Sylius\Bundle\ShopBundle\SyliusShopBundle::class => ['all' => true], - FOS\OAuthServerBundle\FOSOAuthServerBundle::class => ['all' => true], - Sylius\Bundle\AdminApiBundle\SyliusAdminApiBundle::class => ['all' => true], - Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true], - Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true], - Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true], - Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true], - FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle::class => ['test' => true, 'test_cached' => true], - Sylius\Behat\Application\SyliusTestPlugin\SyliusTestPlugin::class => ['test' => true, 'test_cached' => true], - //ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true], - //Sylius\Bundle\ApiBundle\SyliusApiBundle::class => ['all' => true], - //Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true], - SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle::class => ['all' => true], - MonsieurBiz\SyliusRichEditorPlugin\MonsieurBizSyliusRichEditorPlugin::class => ['all' => true], - MonsieurBiz\SyliusCmsPagePlugin\MonsieurBizSyliusCmsPagePlugin::class => ['all' => true], -]; +return array_merge( + require dirname(__DIR__) . '/../../vendor/sylius/sylius/config/bundles.php', + [ + MonsieurBiz\SyliusRichEditorPlugin\MonsieurBizSyliusRichEditorPlugin::class => ['all' => true], + MonsieurBiz\SyliusCmsPagePlugin\MonsieurBizSyliusCmsPagePlugin::class => ['all' => true], + ] +); diff --git a/tests/Application/config/jwt b/tests/Application/config/jwt new file mode 120000 index 0000000..efa4743 --- /dev/null +++ b/tests/Application/config/jwt @@ -0,0 +1 @@ +../../../vendor/sylius/sylius/config/jwt \ No newline at end of file diff --git a/tests/Application/config/packages/_sylius.yaml b/tests/Application/config/packages/_sylius.yaml deleted file mode 100644 index 9e5ca6d..0000000 --- a/tests/Application/config/packages/_sylius.yaml +++ /dev/null @@ -1,23 +0,0 @@ -imports: - - { resource: "@SyliusCoreBundle/Resources/config/app/config.yml" } - - - { resource: "@SyliusAdminBundle/Resources/config/app/config.yml" } - - { resource: "@SyliusAdminApiBundle/Resources/config/app/config.yml" } - - - { resource: "@SyliusShopBundle/Resources/config/app/config.yml" } - -# - { resource: "@SyliusApiBundle/Resources/config/app/config.yaml" } - -parameters: - sylius_core.public_dir: '%kernel.project_dir%/public' - -sylius_shop: - product_grid: - include_all_descendants: true - -sylius_theme: - sources: - filesystem: - scan_depth: 1 - directories: - - "%kernel.project_dir%/themes" diff --git a/tests/Application/config/packages/_sylius.yaml b/tests/Application/config/packages/_sylius.yaml new file mode 120000 index 0000000..6f7e928 --- /dev/null +++ b/tests/Application/config/packages/_sylius.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/_sylius.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/dev b/tests/Application/config/packages/dev new file mode 120000 index 0000000..241855d --- /dev/null +++ b/tests/Application/config/packages/dev @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/dev \ No newline at end of file diff --git a/tests/Application/config/packages/dev/framework.yaml b/tests/Application/config/packages/dev/framework.yaml deleted file mode 100644 index 5dd13a0..0000000 --- a/tests/Application/config/packages/dev/framework.yaml +++ /dev/null @@ -1,3 +0,0 @@ -framework: - profiler: { only_exceptions: false } - ide: phpstorm diff --git a/tests/Application/config/packages/dev/jms_serializer.yaml b/tests/Application/config/packages/dev/jms_serializer.yaml deleted file mode 100644 index 353e460..0000000 --- a/tests/Application/config/packages/dev/jms_serializer.yaml +++ /dev/null @@ -1,7 +0,0 @@ -jms_serializer: - visitors: - json: - options: - - JSON_PRETTY_PRINT - - JSON_UNESCAPED_SLASHES - - JSON_PRESERVE_ZERO_FRACTION diff --git a/tests/Application/config/packages/dev/monolog.yaml b/tests/Application/config/packages/dev/monolog.yaml deleted file mode 100644 index da2b092..0000000 --- a/tests/Application/config/packages/dev/monolog.yaml +++ /dev/null @@ -1,9 +0,0 @@ -monolog: - handlers: - main: - type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" - level: debug - firephp: - type: firephp - level: info diff --git a/tests/Application/config/packages/dev/nelmio_alice.yaml b/tests/Application/config/packages/dev/nelmio_alice.yaml deleted file mode 100644 index e2ae069..0000000 --- a/tests/Application/config/packages/dev/nelmio_alice.yaml +++ /dev/null @@ -1,3 +0,0 @@ -nelmio_alice: - functions_blacklist: - - 'current' diff --git a/tests/Application/config/packages/dev/routing.yaml b/tests/Application/config/packages/dev/routing.yaml deleted file mode 100644 index 4116679..0000000 --- a/tests/Application/config/packages/dev/routing.yaml +++ /dev/null @@ -1,3 +0,0 @@ -framework: - router: - strict_requirements: true diff --git a/tests/Application/config/packages/dev/swiftmailer.yaml b/tests/Application/config/packages/dev/swiftmailer.yaml deleted file mode 100644 index f438078..0000000 --- a/tests/Application/config/packages/dev/swiftmailer.yaml +++ /dev/null @@ -1,2 +0,0 @@ -swiftmailer: - disable_delivery: true diff --git a/tests/Application/config/packages/dev/web_profiler.yaml b/tests/Application/config/packages/dev/web_profiler.yaml deleted file mode 100644 index 1f1cb2b..0000000 --- a/tests/Application/config/packages/dev/web_profiler.yaml +++ /dev/null @@ -1,3 +0,0 @@ -web_profiler: - toolbar: true - intercept_redirects: false diff --git a/tests/Application/config/packages/doctrine.yaml b/tests/Application/config/packages/doctrine.yaml deleted file mode 100644 index b3f64bf..0000000 --- a/tests/Application/config/packages/doctrine.yaml +++ /dev/null @@ -1,23 +0,0 @@ -parameters: - # Adds a fallback DATABASE_URL if the env var is not set. - # This allows you to run cache:warmup even if your - # environment variables are not available yet. - # You should not need to change this value. - env(DATABASE_URL): '' - -doctrine: - dbal: - driver: 'pdo_mysql' - charset: utf8mb4 - - url: '%env(resolve:DATABASE_URL)%' - orm: - auto_generate_proxy_classes: '%kernel.debug%' - auto_mapping: true - mappings: - App: - is_bundle: false - type: annotation - dir: '%kernel.project_dir%/src/Entity' - prefix: 'App\Entity' - alias: App diff --git a/tests/Application/config/packages/doctrine.yaml b/tests/Application/config/packages/doctrine.yaml new file mode 120000 index 0000000..c7c22c0 --- /dev/null +++ b/tests/Application/config/packages/doctrine.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/doctrine.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/doctrine_migrations.yaml b/tests/Application/config/packages/doctrine_migrations.yaml deleted file mode 100644 index cdbc01a..0000000 --- a/tests/Application/config/packages/doctrine_migrations.yaml +++ /dev/null @@ -1,4 +0,0 @@ -doctrine_migrations: - storage: - table_storage: - table_name: sylius_migrations diff --git a/tests/Application/config/packages/doctrine_migrations.yaml b/tests/Application/config/packages/doctrine_migrations.yaml new file mode 120000 index 0000000..1af39ca --- /dev/null +++ b/tests/Application/config/packages/doctrine_migrations.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/doctrine_migrations.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/fos_rest.yaml b/tests/Application/config/packages/fos_rest.yaml deleted file mode 100644 index a72eef7..0000000 --- a/tests/Application/config/packages/fos_rest.yaml +++ /dev/null @@ -1,11 +0,0 @@ -fos_rest: - exception: true - view: - formats: - json: true - xml: true - empty_content: 204 - format_listener: - rules: - - { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true } - - { path: '^/', stop: true } diff --git a/tests/Application/config/packages/fos_rest.yaml b/tests/Application/config/packages/fos_rest.yaml new file mode 120000 index 0000000..4ec0e79 --- /dev/null +++ b/tests/Application/config/packages/fos_rest.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/fos_rest.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/framework.yaml b/tests/Application/config/packages/framework.yaml deleted file mode 100644 index 1026c57..0000000 --- a/tests/Application/config/packages/framework.yaml +++ /dev/null @@ -1,8 +0,0 @@ -framework: - translator: { fallbacks: ["%locale%"] } - secret: '%env(APP_SECRET)%' - form: true - csrf_protection: true - templating: { engines: ["twig"] } - session: - handler_id: ~ diff --git a/tests/Application/config/packages/framework.yaml b/tests/Application/config/packages/framework.yaml new file mode 120000 index 0000000..a74ddd0 --- /dev/null +++ b/tests/Application/config/packages/framework.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/framework.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/jms_serializer.yaml b/tests/Application/config/packages/jms_serializer.yaml deleted file mode 100644 index 64dd8d1..0000000 --- a/tests/Application/config/packages/jms_serializer.yaml +++ /dev/null @@ -1,4 +0,0 @@ -jms_serializer: - visitors: - xml: - format_output: '%kernel.debug%' diff --git a/tests/Application/config/packages/jms_serializer.yaml b/tests/Application/config/packages/jms_serializer.yaml new file mode 120000 index 0000000..6d2169f --- /dev/null +++ b/tests/Application/config/packages/jms_serializer.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/jms_serializer.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/lexik_jwt_authentication.yaml b/tests/Application/config/packages/lexik_jwt_authentication.yaml new file mode 120000 index 0000000..bc8765a --- /dev/null +++ b/tests/Application/config/packages/lexik_jwt_authentication.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/lexik_jwt_authentication.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/liip_imagine.yaml b/tests/Application/config/packages/liip_imagine.yaml deleted file mode 100644 index bb2e7ce..0000000 --- a/tests/Application/config/packages/liip_imagine.yaml +++ /dev/null @@ -1,6 +0,0 @@ -liip_imagine: - resolvers: - default: - web_path: - web_root: "%kernel.project_dir%/public" - cache_prefix: "media/cache" diff --git a/tests/Application/config/packages/liip_imagine.yaml b/tests/Application/config/packages/liip_imagine.yaml new file mode 120000 index 0000000..dd81447 --- /dev/null +++ b/tests/Application/config/packages/liip_imagine.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/liip_imagine.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml b/tests/Application/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml deleted file mode 120000 index f607c85..0000000 --- a/tests/Application/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml +++ /dev/null @@ -1 +0,0 @@ -../../../../recipes/1.0-dev/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml b/tests/Application/config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml deleted file mode 100644 index 7dab3b5..0000000 --- a/tests/Application/config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - { resource: "@MonsieurBizSyliusRichEditorPlugin/Resources/config/config.yaml" } diff --git a/tests/Application/config/packages/nelmio_alice.yaml b/tests/Application/config/packages/nelmio_alice.yaml new file mode 120000 index 0000000..2e35706 --- /dev/null +++ b/tests/Application/config/packages/nelmio_alice.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/nelmio_alice.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/routing.yaml b/tests/Application/config/packages/routing.yaml deleted file mode 100644 index 368bc7f..0000000 --- a/tests/Application/config/packages/routing.yaml +++ /dev/null @@ -1,3 +0,0 @@ -framework: - router: - strict_requirements: ~ diff --git a/tests/Application/config/packages/routing.yaml b/tests/Application/config/packages/routing.yaml new file mode 120000 index 0000000..94d1a64 --- /dev/null +++ b/tests/Application/config/packages/routing.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/routing.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/security.yaml b/tests/Application/config/packages/security.yaml deleted file mode 100644 index a8431dd..0000000 --- a/tests/Application/config/packages/security.yaml +++ /dev/null @@ -1,152 +0,0 @@ -parameters: - sylius.security.admin_regex: "^/%sylius_admin.path_name%" - sylius.security.api_regex: "^/api" - sylius.security.shop_regex: "^/(?!%sylius_admin.path_name%|api/.*|api$|media/.*)[^/]++" -# sylius.security.shop_regex: "^/(?!%sylius_admin.path_name%|new-api|api/.*|api$|media/.*)[^/]++" -# sylius.security.new_api_route: "/new-api" -# sylius.security.new_api_regex: "^%sylius.security.new_api_route%" - -security: - always_authenticate_before_granting: true - providers: - sylius_admin_user_provider: - id: sylius.admin_user_provider.email_or_name_based - sylius_shop_user_provider: - id: sylius.shop_user_provider.email_or_name_based -# sylius_api_admin_user_provider: -# id: sylius.admin_user_provider.email_or_name_based -# sylius_api_shop_user_provider: -# id: sylius.shop_user_provider.email_or_name_based -# sylius_api_chain_provider: -# chain: -# providers: [sylius_api_shop_user_provider, sylius_api_admin_user_provider] - encoders: - Sylius\Component\User\Model\UserInterface: argon2i - firewalls: - admin: - switch_user: true - context: admin - pattern: "%sylius.security.admin_regex%" - provider: sylius_admin_user_provider - form_login: - provider: sylius_admin_user_provider - login_path: sylius_admin_login - check_path: sylius_admin_login_check - failure_path: sylius_admin_login - default_target_path: sylius_admin_dashboard - use_forward: false - use_referer: true - csrf_token_generator: security.csrf.token_manager - csrf_parameter: _csrf_admin_security_token - csrf_token_id: admin_authenticate - remember_me: - secret: "%env(APP_SECRET)%" - path: /admin - name: APP_ADMIN_REMEMBER_ME - lifetime: 31536000 - remember_me_parameter: _remember_me - logout: - path: sylius_admin_logout - target: sylius_admin_login - anonymous: true - - oauth_token: - pattern: "%sylius.security.api_regex%/oauth/v2/token" - security: false - - api: - pattern: "%sylius.security.api_regex%/.*" - provider: sylius_admin_user_provider - fos_oauth: true - stateless: true - anonymous: true - - shop: - switch_user: { role: ROLE_ALLOWED_TO_SWITCH } - context: shop - pattern: "%sylius.security.shop_regex%" - provider: sylius_shop_user_provider - form_login: - success_handler: sylius.authentication.success_handler - failure_handler: sylius.authentication.failure_handler - provider: sylius_shop_user_provider - login_path: sylius_shop_login - check_path: sylius_shop_login_check - failure_path: sylius_shop_login - default_target_path: sylius_shop_homepage - use_forward: false - use_referer: true - csrf_token_generator: security.csrf.token_manager - csrf_parameter: _csrf_shop_security_token - csrf_token_id: shop_authenticate - remember_me: - secret: "%env(APP_SECRET)%" - name: APP_SHOP_REMEMBER_ME - lifetime: 31536000 - remember_me_parameter: _remember_me - logout: - path: sylius_shop_logout - target: sylius_shop_login - invalidate_session: false - success_handler: sylius.handler.shop_user_logout - anonymous: true - -# new_api_admin_user: -# pattern: "%sylius.security.new_api_route%/admin-user-authentication-token" -# provider: sylius_admin_user_provider -# stateless: true -# anonymous: true -# json_login: -# check_path: "%sylius.security.new_api_route%/admin-user-authentication-token" -# username_path: email -# password_path: password -# success_handler: lexik_jwt_authentication.handler.authentication_success -# failure_handler: lexik_jwt_authentication.handler.authentication_failure -# guard: -# authenticators: -# - lexik_jwt_authentication.jwt_token_authenticator -# -# new_api_shop_user: -# pattern: "%sylius.security.new_api_route%/shop-user-authentication-token" -# provider: sylius_shop_user_provider -# stateless: true -# anonymous: true -# json_login: -# check_path: "%sylius.security.new_api_route%/shop-user-authentication-token" -# username_path: email -# password_path: password -# success_handler: lexik_jwt_authentication.handler.authentication_success -# failure_handler: lexik_jwt_authentication.handler.authentication_failure -# guard: -# authenticators: -# - lexik_jwt_authentication.jwt_token_authenticator -# -# new_api: -# pattern: "%sylius.security.new_api_regex%/*" -# provider: sylius_api_chain_provider -# stateless: true -# anonymous: lazy -# guard: -# authenticators: -# - lexik_jwt_authentication.jwt_token_authenticator - - dev: - pattern: ^/(_(profiler|wdt)|css|images|js)/ - security: false - - access_control: - - { path: "%sylius.security.admin_regex%/_partial", role: IS_AUTHENTICATED_ANONYMOUSLY, ips: [127.0.0.1, ::1] } - - { path: "%sylius.security.admin_regex%/_partial", role: ROLE_NO_ACCESS } - - { path: "%sylius.security.shop_regex%/_partial", role: IS_AUTHENTICATED_ANONYMOUSLY, ips: [127.0.0.1, ::1] } - - { path: "%sylius.security.shop_regex%/_partial", role: ROLE_NO_ACCESS } - - - { path: "%sylius.security.admin_regex%/login", role: IS_AUTHENTICATED_ANONYMOUSLY } - - { path: "%sylius.security.api_regex%/login", role: IS_AUTHENTICATED_ANONYMOUSLY } - - { path: "%sylius.security.shop_regex%/login", role: IS_AUTHENTICATED_ANONYMOUSLY } - - - { path: "%sylius.security.shop_regex%/register", role: IS_AUTHENTICATED_ANONYMOUSLY } - - { path: "%sylius.security.shop_regex%/verify", role: IS_AUTHENTICATED_ANONYMOUSLY } - - - { path: "%sylius.security.admin_regex%", role: ROLE_ADMINISTRATION_ACCESS } - - { path: "%sylius.security.api_regex%/.*", role: ROLE_API_ACCESS } - - { path: "%sylius.security.shop_regex%/account", role: ROLE_USER } diff --git a/tests/Application/config/packages/security.yaml b/tests/Application/config/packages/security.yaml new file mode 120000 index 0000000..c9ef249 --- /dev/null +++ b/tests/Application/config/packages/security.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/security.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/stof_doctrine_extensions.yaml b/tests/Application/config/packages/stof_doctrine_extensions.yaml deleted file mode 100644 index 7770f74..0000000 --- a/tests/Application/config/packages/stof_doctrine_extensions.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Read the documentation: https://symfony.com/doc/current/bundles/StofDoctrineExtensionsBundle/index.html -# See the official DoctrineExtensions documentation for more details: https://github.com/Atlantic18/DoctrineExtensions/tree/master/doc/ -stof_doctrine_extensions: - default_locale: '%locale%' diff --git a/tests/Application/config/packages/stof_doctrine_extensions.yaml b/tests/Application/config/packages/stof_doctrine_extensions.yaml new file mode 120000 index 0000000..88a434a --- /dev/null +++ b/tests/Application/config/packages/stof_doctrine_extensions.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/stof_doctrine_extensions.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/swiftmailer.yaml b/tests/Application/config/packages/swiftmailer.yaml deleted file mode 100644 index 3bab0d3..0000000 --- a/tests/Application/config/packages/swiftmailer.yaml +++ /dev/null @@ -1,2 +0,0 @@ -swiftmailer: - url: '%env(MAILER_URL)%' diff --git a/tests/Application/config/packages/swiftmailer.yaml b/tests/Application/config/packages/swiftmailer.yaml new file mode 120000 index 0000000..627c6af --- /dev/null +++ b/tests/Application/config/packages/swiftmailer.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/swiftmailer.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/test b/tests/Application/config/packages/test new file mode 120000 index 0000000..f764514 --- /dev/null +++ b/tests/Application/config/packages/test @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/test \ No newline at end of file diff --git a/tests/Application/config/packages/test/fidry_alice_data_fixtures.yaml b/tests/Application/config/packages/test/fidry_alice_data_fixtures.yaml deleted file mode 100644 index ae4e694..0000000 --- a/tests/Application/config/packages/test/fidry_alice_data_fixtures.yaml +++ /dev/null @@ -1,2 +0,0 @@ -fidry_alice_data_fixtures: - default_purge_mode: no_purge diff --git a/tests/Application/config/packages/test/framework.yaml b/tests/Application/config/packages/test/framework.yaml deleted file mode 100644 index 76d7e5e..0000000 --- a/tests/Application/config/packages/test/framework.yaml +++ /dev/null @@ -1,4 +0,0 @@ -framework: - test: ~ - session: - storage_id: session.storage.mock_file diff --git a/tests/Application/config/packages/test/monolog.yaml b/tests/Application/config/packages/test/monolog.yaml deleted file mode 100644 index 7e2b9e3..0000000 --- a/tests/Application/config/packages/test/monolog.yaml +++ /dev/null @@ -1,6 +0,0 @@ -monolog: - handlers: - main: - type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" - level: error diff --git a/tests/Application/config/packages/test/nelmio_alice.yaml b/tests/Application/config/packages/test/nelmio_alice.yaml deleted file mode 100644 index caec543..0000000 --- a/tests/Application/config/packages/test/nelmio_alice.yaml +++ /dev/null @@ -1,2 +0,0 @@ -imports: - - { resource: ../dev/nelmio_alice.yaml } diff --git a/tests/Application/config/packages/test/swiftmailer.yaml b/tests/Application/config/packages/test/swiftmailer.yaml deleted file mode 100644 index c438f4b..0000000 --- a/tests/Application/config/packages/test/swiftmailer.yaml +++ /dev/null @@ -1,6 +0,0 @@ -swiftmailer: - disable_delivery: true - logging: true - spool: - type: file - path: "%kernel.cache_dir%/spool" diff --git a/tests/Application/config/packages/test/sylius_theme.yaml b/tests/Application/config/packages/test/sylius_theme.yaml deleted file mode 100644 index 4d34199..0000000 --- a/tests/Application/config/packages/test/sylius_theme.yaml +++ /dev/null @@ -1,3 +0,0 @@ -sylius_theme: - sources: - test: ~ diff --git a/tests/Application/config/packages/test/sylius_uploader.yaml b/tests/Application/config/packages/test/sylius_uploader.yaml deleted file mode 100644 index ab9d6ca..0000000 --- a/tests/Application/config/packages/test/sylius_uploader.yaml +++ /dev/null @@ -1,3 +0,0 @@ -services: - Sylius\Component\Core\Generator\ImagePathGeneratorInterface: - class: Sylius\Behat\Service\Generator\UploadedImagePathGenerator diff --git a/tests/Application/config/packages/test/web_profiler.yaml b/tests/Application/config/packages/test/web_profiler.yaml deleted file mode 100644 index 03752de..0000000 --- a/tests/Application/config/packages/test/web_profiler.yaml +++ /dev/null @@ -1,6 +0,0 @@ -web_profiler: - toolbar: false - intercept_redirects: false - -framework: - profiler: { collect: false } diff --git a/tests/Application/config/packages/test_cached b/tests/Application/config/packages/test_cached new file mode 120000 index 0000000..66ffd82 --- /dev/null +++ b/tests/Application/config/packages/test_cached @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/test_cached \ No newline at end of file diff --git a/tests/Application/config/packages/translation.yaml b/tests/Application/config/packages/translation.yaml deleted file mode 100644 index 1f4f966..0000000 --- a/tests/Application/config/packages/translation.yaml +++ /dev/null @@ -1,8 +0,0 @@ -framework: - default_locale: '%locale%' - translator: - paths: - - '%kernel.project_dir%/translations' - fallbacks: - - '%locale%' - - 'en' diff --git a/tests/Application/config/packages/translation.yaml b/tests/Application/config/packages/translation.yaml new file mode 120000 index 0000000..759bccb --- /dev/null +++ b/tests/Application/config/packages/translation.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/translation.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/twig.yaml b/tests/Application/config/packages/twig.yaml deleted file mode 100644 index 8545473..0000000 --- a/tests/Application/config/packages/twig.yaml +++ /dev/null @@ -1,12 +0,0 @@ -twig: - paths: ['%kernel.project_dir%/templates'] - debug: '%kernel.debug%' - strict_variables: '%kernel.debug%' - -services: - _defaults: - public: false - autowire: true - autoconfigure: true - - Twig\Extra\Intl\IntlExtension: ~ diff --git a/tests/Application/config/packages/twig.yaml b/tests/Application/config/packages/twig.yaml new file mode 120000 index 0000000..305c69e --- /dev/null +++ b/tests/Application/config/packages/twig.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/twig.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/validator.yaml b/tests/Application/config/packages/validator.yaml deleted file mode 100644 index 61807db..0000000 --- a/tests/Application/config/packages/validator.yaml +++ /dev/null @@ -1,3 +0,0 @@ -framework: - validation: - enable_annotations: true diff --git a/tests/Application/config/packages/validator.yaml b/tests/Application/config/packages/validator.yaml new file mode 120000 index 0000000..a381919 --- /dev/null +++ b/tests/Application/config/packages/validator.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/packages/validator.yaml \ No newline at end of file diff --git a/tests/Application/config/routes.yaml b/tests/Application/config/routes.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/tests/Application/config/routes.yaml b/tests/Application/config/routes.yaml new file mode 120000 index 0000000..5ce0cf9 --- /dev/null +++ b/tests/Application/config/routes.yaml @@ -0,0 +1 @@ +../../../vendor/sylius/sylius/config/routes.yaml \ No newline at end of file diff --git a/tests/Application/config/routes/dev b/tests/Application/config/routes/dev new file mode 120000 index 0000000..260f2a1 --- /dev/null +++ b/tests/Application/config/routes/dev @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/routes/dev \ No newline at end of file diff --git a/tests/Application/config/routes/dev/twig.yaml b/tests/Application/config/routes/dev/twig.yaml deleted file mode 100644 index f4ee839..0000000 --- a/tests/Application/config/routes/dev/twig.yaml +++ /dev/null @@ -1,3 +0,0 @@ -_errors: - resource: '@TwigBundle/Resources/config/routing/errors.xml' - prefix: /_error diff --git a/tests/Application/config/routes/dev/web_profiler.yaml b/tests/Application/config/routes/dev/web_profiler.yaml deleted file mode 100644 index 3e79dc2..0000000 --- a/tests/Application/config/routes/dev/web_profiler.yaml +++ /dev/null @@ -1,7 +0,0 @@ -_wdt: - resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" - prefix: /_wdt - -_profiler: - resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" - prefix: /_profiler diff --git a/tests/Application/config/routes/liip_imagine.yaml b/tests/Application/config/routes/liip_imagine.yaml deleted file mode 100644 index 201cbd5..0000000 --- a/tests/Application/config/routes/liip_imagine.yaml +++ /dev/null @@ -1,2 +0,0 @@ -_liip_imagine: - resource: "@LiipImagineBundle/Resources/config/routing.yaml" diff --git a/tests/Application/config/routes/liip_imagine.yaml b/tests/Application/config/routes/liip_imagine.yaml new file mode 120000 index 0000000..a0cd29e --- /dev/null +++ b/tests/Application/config/routes/liip_imagine.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/routes/liip_imagine.yaml \ No newline at end of file diff --git a/tests/Application/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml b/tests/Application/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml deleted file mode 120000 index 8358112..0000000 --- a/tests/Application/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml +++ /dev/null @@ -1 +0,0 @@ -../../../../recipes/1.0-dev/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml \ No newline at end of file diff --git a/tests/Application/config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml b/tests/Application/config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml deleted file mode 100644 index c770b01..0000000 --- a/tests/Application/config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml +++ /dev/null @@ -1,3 +0,0 @@ -monsieurbiz_richeditor_admin: - resource: "@MonsieurBizSyliusRichEditorPlugin/Resources/config/routing/admin.yaml" - prefix: /%sylius_admin.path_name% diff --git a/tests/Application/config/routes/sylius_admin.yaml b/tests/Application/config/routes/sylius_admin.yaml deleted file mode 100644 index fb59bf1..0000000 --- a/tests/Application/config/routes/sylius_admin.yaml +++ /dev/null @@ -1,3 +0,0 @@ -sylius_admin: - resource: "@SyliusAdminBundle/Resources/config/routing.yml" - prefix: /%sylius_admin.path_name% diff --git a/tests/Application/config/routes/sylius_admin.yaml b/tests/Application/config/routes/sylius_admin.yaml new file mode 120000 index 0000000..fb7ebdf --- /dev/null +++ b/tests/Application/config/routes/sylius_admin.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/routes/sylius_admin.yaml \ No newline at end of file diff --git a/tests/Application/config/routes/sylius_admin_api.yaml b/tests/Application/config/routes/sylius_admin_api.yaml deleted file mode 100644 index 80aed45..0000000 --- a/tests/Application/config/routes/sylius_admin_api.yaml +++ /dev/null @@ -1,3 +0,0 @@ -sylius_admin_api: - resource: "@SyliusAdminApiBundle/Resources/config/routing.yml" - prefix: /api diff --git a/tests/Application/config/routes/sylius_admin_api.yaml b/tests/Application/config/routes/sylius_admin_api.yaml new file mode 120000 index 0000000..612288c --- /dev/null +++ b/tests/Application/config/routes/sylius_admin_api.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/routes/sylius_admin_api.yaml \ No newline at end of file diff --git a/tests/Application/config/routes/sylius_api.yaml b/tests/Application/config/routes/sylius_api.yaml deleted file mode 100644 index afb1802..0000000 --- a/tests/Application/config/routes/sylius_api.yaml +++ /dev/null @@ -1,3 +0,0 @@ -#sylius_api: -# resource: "@SyliusApiBundle/Resources/config/routing.yml" -# prefix: "%sylius.security.new_api_route%" diff --git a/tests/Application/config/routes/sylius_api.yaml b/tests/Application/config/routes/sylius_api.yaml new file mode 120000 index 0000000..8e6246c --- /dev/null +++ b/tests/Application/config/routes/sylius_api.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/routes/sylius_api.yaml \ No newline at end of file diff --git a/tests/Application/config/routes/sylius_shop.yaml b/tests/Application/config/routes/sylius_shop.yaml deleted file mode 100644 index 92eeae0..0000000 --- a/tests/Application/config/routes/sylius_shop.yaml +++ /dev/null @@ -1,14 +0,0 @@ -sylius_shop: - resource: "@SyliusShopBundle/Resources/config/routing.yml" - prefix: /{_locale} - requirements: - _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$ - -sylius_shop_payum: - resource: "@SyliusShopBundle/Resources/config/routing/payum.yml" - -sylius_shop_default_locale: - path: / - methods: [GET] - defaults: - _controller: sylius.controller.shop.locale_switch:switchAction diff --git a/tests/Application/config/routes/sylius_shop.yaml b/tests/Application/config/routes/sylius_shop.yaml new file mode 120000 index 0000000..6ca08a4 --- /dev/null +++ b/tests/Application/config/routes/sylius_shop.yaml @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/routes/sylius_shop.yaml \ No newline at end of file diff --git a/tests/Application/config/routes/test b/tests/Application/config/routes/test new file mode 120000 index 0000000..b12612e --- /dev/null +++ b/tests/Application/config/routes/test @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/routes/test \ No newline at end of file diff --git a/tests/Application/config/routes/test/sylius_test_plugin.yaml b/tests/Application/config/routes/test/sylius_test_plugin.yaml deleted file mode 100644 index 0ca57d9..0000000 --- a/tests/Application/config/routes/test/sylius_test_plugin.yaml +++ /dev/null @@ -1,5 +0,0 @@ -sylius_test_plugin_main: - path: /test/main - controller: FrameworkBundle:Template:template - defaults: - template: "@SyliusTestPlugin/main.html.twig" diff --git a/tests/Application/config/routes/test_cached b/tests/Application/config/routes/test_cached new file mode 120000 index 0000000..e070766 --- /dev/null +++ b/tests/Application/config/routes/test_cached @@ -0,0 +1 @@ +../../../../vendor/sylius/sylius/config/routes/test_cached \ No newline at end of file diff --git a/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml b/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml deleted file mode 100644 index 0ca57d9..0000000 --- a/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml +++ /dev/null @@ -1,5 +0,0 @@ -sylius_test_plugin_main: - path: /test/main - controller: FrameworkBundle:Template:template - defaults: - template: "@SyliusTestPlugin/main.html.twig" diff --git a/tests/Application/config/secrets b/tests/Application/config/secrets new file mode 120000 index 0000000..bd4b640 --- /dev/null +++ b/tests/Application/config/secrets @@ -0,0 +1 @@ +../../../vendor/sylius/sylius/config/secrets \ No newline at end of file diff --git a/tests/Application/config/services.yaml b/tests/Application/config/services.yaml deleted file mode 100644 index fee9407..0000000 --- a/tests/Application/config/services.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# Put parameters here that don't need to change on each machine where the app is deployed -# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration -parameters: - locale: en_US - -services: - # Default configuration for services in *this* file - _defaults: - # Automatically injects dependencies in your services - autowire: true - - # Automatically registers your services as commands, event subscribers, etc. - autoconfigure: true - - # Allows optimizing the container by removing unused services; this also means - # fetching services directly from the container via $container->get() won't work - public: false - - _instanceof: - Sylius\Bundle\ResourceBundle\Controller\ResourceController: - autowire: false - Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType: - autowire: false - - # Makes classes in src/ available to be used as services; - # this creates a service per class whose id is the fully-qualified class name - App\: - resource: '../src/*' - exclude: '../src/{Entity,Migrations,Tests,Kernel.php}' - - # Controllers are imported separately to make sure services can be injected - # as action arguments even if you don't extend any base controller class - App\Controller\: - resource: '../src/Controller' - tags: ['controller.service_arguments'] diff --git a/tests/Application/config/services.yaml b/tests/Application/config/services.yaml new file mode 120000 index 0000000..5343bd9 --- /dev/null +++ b/tests/Application/config/services.yaml @@ -0,0 +1 @@ +../../../vendor/sylius/sylius/config/services.yaml \ No newline at end of file diff --git a/tests/Application/config/services_test.yaml b/tests/Application/config/services_test.yaml deleted file mode 100644 index 333b32f..0000000 --- a/tests/Application/config/services_test.yaml +++ /dev/null @@ -1,2 +0,0 @@ -#imports: -# - { resource: "../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml" } diff --git a/tests/Application/config/services_test.yaml b/tests/Application/config/services_test.yaml new file mode 120000 index 0000000..177cc6c --- /dev/null +++ b/tests/Application/config/services_test.yaml @@ -0,0 +1 @@ +../../../vendor/sylius/sylius/config/services_test.yaml \ No newline at end of file diff --git a/tests/Application/config/services_test_cached.yaml b/tests/Application/config/services_test_cached.yaml new file mode 120000 index 0000000..486f379 --- /dev/null +++ b/tests/Application/config/services_test_cached.yaml @@ -0,0 +1 @@ +../../../vendor/sylius/sylius/config/services_test_cached.yaml \ No newline at end of file diff --git a/tests/Application/package.json b/tests/Application/package.json deleted file mode 100644 index 2f72522..0000000 --- a/tests/Application/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "dependencies": { - "babel-polyfill": "^6.26.0", - "chart.js": "^2.9.3", - "jquery": "^3.2.0", - "jquery.dirtyforms": "^2.0.0", - "lightbox2": "^2.9.0", - "semantic-ui-css": "^2.2.0", - "slick-carousel": "^1.8.1" - }, - "devDependencies": { - "@symfony/webpack-encore": "^0.28.0", - "babel-core": "^6.26.3", - "babel-plugin-external-helpers": "^6.22.0", - "babel-plugin-module-resolver": "^3.1.1", - "babel-plugin-transform-object-rest-spread": "^6.26.0", - "babel-preset-env": "^1.7.0", - "babel-register": "^6.26.0", - "dedent": "^0.7.0", - "eslint": "^4.19.1", - "eslint-config-airbnb-base": "^12.1.0", - "eslint-import-resolver-babel-module": "^4.0.0", - "eslint-plugin-import": "^2.12.0", - "fast-async": "^6.3.7", - "gulp": "^4.0.0", - "gulp-chug": "^0.5", - "gulp-concat": "^2.6.0", - "gulp-debug": "^2.1.2", - "gulp-if": "^2.0.0", - "gulp-livereload": "^3.8.1", - "gulp-order": "^1.1.1", - "gulp-sass": "^4.0.1", - "gulp-sourcemaps": "^1.6.0", - "gulp-uglifycss": "^1.0.5", - "merge-stream": "^1.0.0", - "rollup": "^0.60.7", - "rollup-plugin-babel": "^3.0.4", - "rollup-plugin-commonjs": "^9.1.3", - "rollup-plugin-inject": "^2.0.0", - "rollup-plugin-node-resolve": "^3.3.0", - "rollup-plugin-uglify": "^4.0.0", - "sass-loader": "^7.0.1", - "upath": "^1.1.0", - "yargs": "^6.4.0" - }, - "scripts": { - "build": "gulp build", - "gulp": "gulp build", - "lint": "yarn lint:js", - "lint:js": "eslint gulpfile.babel.js" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Sylius/Sylius.git" - }, - "author": "Paweł Jędrzejewski", - "license": "MIT" -} diff --git a/tests/Application/package.json b/tests/Application/package.json new file mode 120000 index 0000000..eda338b --- /dev/null +++ b/tests/Application/package.json @@ -0,0 +1 @@ +../../vendor/sylius/sylius/package.json \ No newline at end of file diff --git a/tests/Application/public/.htaccess b/tests/Application/public/.htaccess deleted file mode 100644 index 99ed00d..0000000 --- a/tests/Application/public/.htaccess +++ /dev/null @@ -1,25 +0,0 @@ -DirectoryIndex app.php - - - RewriteEngine On - - RewriteCond %{HTTP:Authorization} ^(.*) - RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] - - RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ - RewriteRule ^(.*) - [E=BASE:%1] - - RewriteCond %{ENV:REDIRECT_STATUS} ^$ - RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L] - - RewriteCond %{REQUEST_FILENAME} -f - RewriteRule .? - [L] - - RewriteRule .? %{ENV:BASE}/index.php [L] - - - - - RedirectMatch 302 ^/$ /index.php/ - - diff --git a/tests/Application/public/.htaccess b/tests/Application/public/.htaccess new file mode 120000 index 0000000..59de487 --- /dev/null +++ b/tests/Application/public/.htaccess @@ -0,0 +1 @@ +../../../vendor/sylius/sylius/public/.htaccess \ No newline at end of file diff --git a/tests/Application/public/favicon.ico b/tests/Application/public/favicon.ico deleted file mode 100644 index 592f7a8e45d5ef6fe2a3c0426b5276e463480ba5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32038 zcmeHQ4NO#5+NN=dA;z$#F^w_CnoZLsP17~T#Xl;F2&jmH2&jNc5hrj3LAj!gs&t%y8h&WqvL*7f{zp z4)@%9&(C|_bMAZI^S;kHI5@oL@H>a!|K0(=4;>Ev&cR_LiG66eFU9i;Jp0q1M(;mz zaM(HD!NJ|#aR0~k4i5jf%E94}xFtn=i142NFVY|%_s1~Id)y#t`KwdG&99urH=>+# z8zP)V^?RLjYQvl_)rZgFrsdveR0cX9m#)4WFIhPpFIh1ben9+e?fNHI+JYBw^RVwv z$lN49NL(3iI4)hmWHxVPa+I4(*y-8vlO^lIx%tRF$$R#iJCmjKB4H#?9pJ~#N8+dD z-XDYJmo)#0(p5}K_1cm14I8_1+x!n@DZPhA^D~#*wjE;U&#c_xlqg%H>Y*8O4jwIBRhZLjaaALh67Ft-CvemR&6_6*bz3L zzAx79bIw-!JTv6?etD%m_#^s`&sC(_8b|9!*-?D*&@{ze`<${{H$5WxL3f?;aJF1?zbuz`L-`v?sX(Vy86}eVs==C`|%K8 zyz&(d39?nMvTpj8)#&2Q_A%eOA-mmB?f{j6e6GnAZp_6NuMu%u&~Co~N8G?`BJNao=TB1%47=yy`hE)7q8H zrAdm_m`~RkwVl*Y0%X-ag)ZiOZat>%MGcY8n6taA)tOMbk~v-J#+sB?r}FOBD_12Vbwn7Th#u`K}l#*m@@6(flyYX(l?TRK<2p2@uFspoA@>!#5)FxSTZRQ>m@yc0hQbBU7H$G%=_-TE_h3#+_`zOoql$~}Bo8C5%7#p=K& zS{8WwGkAQc^j6G5F6|QSeh=tE!!#|ug71S8ZMYjZy{UWXJ4-It?^{%Vzh2*_(p%B1 zb6U5&L|f|$+IMZP?my;aDj#_!YTa5(>ttU+f3mqe)}B}N9`Y>hI`E0LbP~m_l})UD7Ra<-P=-uK{73Ab+0^P;3HYPr2-TgzXh4RyhI9OTvy9ruW}yh6OsYu_Q_ z)_qy!r-V)_*xYN5PUyjlp^Ls?*N^$;xl|kBVlI!6&-2tfQ`mKr_!afe7$NI0S5}$s z%LV9nBUuaGy0-0p#-w#wb9GpH4mos`-FEQ(Npa_Xn{{DJb#dQe4e~zLJ^J;Jfd=o9 zf{s1m+;mfQk8dlQ-FB=&q{@f+6ZE|MkfV40r^c+zw1vLf{-bj+&)lQ+XWsN4ENF}P zm|Iq5@3+pft^?7{znq)LeP_?TxP50(R*ONWAUake=HpXk8>87}Lf2UYxnBpl%xm6Z z=d~6uY~Qm4^Qn^5eWqru-X4MZ@)6d8`uVlE^9wi3Sr5@iN!H4;^*z>*b8?#f5{^q( zjp^jcWg8C{bc93_xi3=rbz@CA*Vgj+=7WB)Er=JLZ@S zL=Aggvaf}?WY>hbz^0?WlDMcL{3F$@?}44ja10?Q8J+B1-R{8Pjp=^b`BYg(gqf zD!iCnRY0b^^J}YX^2yN4P7Ax)>@!!l1YvAEHqUc*U(i0G?V#_*pQqKcY&$L9&qS@; zBlFa|rew~!P!qf?sdT;4VE>}D&_19vv7b}AOiG^Kx)b41B=Uo2Nd)hySHW8ay27D%T&A`4wS02Q=EwKLfX}i~rmD*&-^r`?a z$jRIM#yq8$UMKcJLdgo)``kx)Pi?y7Iv$7rtWnarZ^9ag@|5rOeC75ULX1Mp!b!ai%WtqL~VIj7}bV%Us9JG=i0 zZz+Gdaiqi8CiIf;llTmXKlVb?Myw?^J-`~O?6S)LA)8h+@e$a-nx&o5HuXV$Z-!%9 zg9fZ@t9$c zpB&hX@;id#WVa%1T05jy_%DOqR!jK)y`J|5{I!?+=|uNXNFUl!ppS>MCouD9{)=^gc}kTILn>U$ewBptqR57@zt=AnX)-76tm z^nPMXZNRq++jz81_PYN5BF8g|O-axXUVwJcyy^v!JxL`ViVN4aRcADM4Uus%Cbu!~ zV>~>=`n(zI#bbqM{%yiK{c88ubIBOWR(cPx#|bx1Y+m{8yNqlfe0WaNq*rWP zmsGO;SB#yWuT^4J_rBWLTzYBktX~P^4@RE zj@9DM$WPG5E=znz*{|Re5trVIvdK4Bt2sI6O5>O7fIV@Qwj6P$J_FLWtGd5b_$}V}$a7d(CUxL3lsGp3iO%FbrymcCX+%Xw#jPd9tp^B$Qu% zMI9V1?TlQCvCVsKtm-?m5N-a+K&xq)Lu}MVn!N#c|F=r;HGt+`p7Yh-xMkALeG6-J z-}B-(oB#N3L&5tAek96!^yvutCm((lv*V9l-gL%gx1v6RKTt_&HE|tAzg{ov`tqac zq>E2o)qUU2F3{|WfIkD6qH*1Z9fu6~wV-`ZKyBX-lkQhOG}x1-Koh*+vTAF&US`1$ zVuJS!WNu)^}#b!_YqzU#-o z_Ymf({6fv1*HYe)_O-P9FbjUq42n5nk00ni-Nl;yZk_ieg6lVYd21~le8?{FBR(?X zJ?7o)R-fU5_TAByy2I0IW41;w`@KXR>x6YzyfN)$&h;M3Rr`yHKa8E88z+A0AAhTu zF&zRpto(9&bset}vStBBY$cao_Py#smJ@JDpQ#_@%!m$G(|;7}^4*7_!(+Z0 z*K>d^AIfapnk8=j!mPi&viI;Dv@b-`x%Wu(-E%Xd2VpLC$x&|6vgawXK28RXFG1$k zm!jBY60=mO3I70V(p2bh3aQpQCX3x?LdJ_Up{^JwJyg#mv=jUxv8@n$Z;HYvjbXaS zvjM1^4@Qz%x6LCgYK)z+J~&b0_8{lxwtUzy z^t5B$^%%A|yKvM~)u!C*QBGOc_ACWnx6Xh)ch&EYx!CNbx1V6#3|?su$t>3$nm<)E z2vII@B=gQy_{L$M&d+4ck~L~)#MrNcoo+^C{bbuEQN_S+80-VRq8of4f?oZ!NVCst zvgOQVdV*tvO>;SH(PG#mQh}$LF9)P zbn}7WwA>MnBT$@{1NO9Xe|-D%UApQ0e%|r>&E+@nb91rp(bZA_e$LfW$Y}_31&+>a z0H#iGUz$*3?#$KADZnDVI9cLuHYCbEe_<(L|2llbrbA+h+l$Nw-@al^6tDehLbZ!e zIp?c(>`N?JH-qH^11gk=P``9Nb#(ve;#;*tL;>u+Ch8`i?YN{*)zKHl5HV@~k zcg67Om#I#p)QRRNmw8D|(JSOLg8R{9XGU#Vz+>D7E^^sax6fMnXUqM*AIHEEOv=;* zF0PNPJ%M@366p@i*xCWu(Li8!pH5YqX}Kq`f0yplX4^7h?-&%fh3vD|M^o{>NO|bf zWcfxFrEw~+DOI13V}n?>T*3?BI(!G8%<+E^;%CW;y*OPU9|eX5Vr@` z0{a3hbbgE?iGi&4i_$bDo z=;&m=qUWy|)9XXdA$tISMP_N&K`&r+O@5=mOz(z2W)vqh?zcBC%lJ9Q&?B7N;=`uh z-nd-(x25>z;cw)A^D7vfQ}+sd`RQ!6=g?X7G11LQADf~P_=zF0dWQ=B?8EZj*iRTn zX?DGWvuWl69|&xwar-RYV^73Lp*H-Oz3pY^2VQ>;@cOx|whv=JbM?6NdNYt`PjSYEMAjJlFBmP-J z`r6NxZ;iuVivi4ccT?nElJgb*v7-9O<&}NuqnHt$W3e_|%%u}D3;0vWGtHjlivGX4 z)!)zHjol$@iu{gU*h^r(t=xCmXK+`cJ1FSc4cITRP~31ZI;TD?u&D8?CD<=8p$*si zkNM2qGr@1)x-H9GPRKAf|2UC16)P|)%mYCEX zxI7?hf@^*8OHGyYCO*SnnonT2c))F^se8;ZFNtpWCbrWY%~v`Cj{p-tVyeB|XILYp z%NhG+tvOnz`+4*I#6LjS1wPcez61T4oKxpA-84>ReZ`#-M{-(ytoA+5=z9uWY~WPV zGTmikAJhlX+pXI-TD+Npj$pyp^wZs5ZhhFp#>>7TZVzf~{`ul!ZvHp|UANU!2`2@9P*+a9Cd8>NA^8{wgtbHR# zwS}zdUkf~wknJXA#mC3b!oC*lKQ*uCld*yQ3~$Yvp3TEjUCc5|_6_JlJvF!gzKos6 zS{(aAXW#yHO|j2E7a~j#5d1Oro;ZpqghzPnd*OX78vmx z;{PY4@}W_xjSPUC(B`!TO5cPzvix@JBAj_(@@yyK6Q+AfPsr9j6xHvuFz?A{VNY)y zupRin9f9|-Cw46#e$8~6J9p%>u@5;O`vRY``=5+^f`4H77MXLEez^?%DqNbC4=*kd zw+E-d_BVtz(=co%Z=7z3eb9lJ`&D$WB*6p_i~zg+z>q$}o&ZmF`>T5Xz8tnuDZw=m z{$VWT_CF~y=`&~NdmZCAhyByMwgAz^n?A#d@>ND{r+hfA@XjS;hS0C*{?ZTgqKb|i z_=b9jpWtHU1v# zgI)*htODm>P8bL0>wWIR?qh`gz?w0a=sSG*{3fI$n5tC8=7hwOwR-G0!Fh7=?PTmj z-gnjgc=C-N_m=ttd&z@R%e}QkCUWsJIFDcen3-@(`QL_j*o%(!!M1$-Urr-E3G-ft z(gIfKZD>1f1J-`?^4oVG10Nobj(ausvjZ!|AD{X*qy_eKJ7j&W?AC$Mx1l|@v;k)U dEVL!xyFC9{-^#oGwy(dr=K;LC|IgyU{{uV>Qo;ZL diff --git a/tests/Application/public/favicon.ico b/tests/Application/public/favicon.ico new file mode 120000 index 0000000..85df8df --- /dev/null +++ b/tests/Application/public/favicon.ico @@ -0,0 +1 @@ +../../../vendor/sylius/sylius/public/favicon.ico \ No newline at end of file diff --git a/tests/Application/public/media/image/.gitignore b/tests/Application/public/media/image/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/tests/Application/public/robots.txt b/tests/Application/public/robots.txt deleted file mode 100644 index 214e411..0000000 --- a/tests/Application/public/robots.txt +++ /dev/null @@ -1,4 +0,0 @@ -# www.robotstxt.org/ -# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 - -User-agent: * diff --git a/tests/Application/public/robots.txt b/tests/Application/public/robots.txt new file mode 120000 index 0000000..3e89e5e --- /dev/null +++ b/tests/Application/public/robots.txt @@ -0,0 +1 @@ +../../../vendor/sylius/sylius/public/robots.txt \ No newline at end of file diff --git a/tests/Application/src/Kernel.php b/tests/Application/src/Kernel.php index c7701f7..a290b22 100644 --- a/tests/Application/src/Kernel.php +++ b/tests/Application/src/Kernel.php @@ -33,7 +33,8 @@ use Symfony\Component\Routing\RouteCollectionBuilder; use Webmozart\Assert\Assert; -final class Kernel extends BaseKernel +/** @final */ +class Kernel extends BaseKernel { use MicroKernelTrait; @@ -51,6 +52,7 @@ public function getLogDir(): string public function registerBundles(): iterable { + /** @psalm-suppress UnresolvableInclude */ $contents = require $this->getProjectDir() . '/config/bundles.php'; foreach ($contents as $class => $envs) { if (isset($envs['all']) || isset($envs[$this->environment])) { @@ -89,24 +91,6 @@ protected function getContainerBaseClass(): string return parent::getContainerBaseClass(); } - protected function getContainerLoader(ContainerInterface $container): LoaderInterface - { - Assert::isInstanceOf($container, ContainerBuilder::class); - - $locator = new FileLocator($this, $this->getRootDir() . '/Resources'); - $resolver = new LoaderResolver([ - new XmlFileLoader($container, $locator), - new YamlFileLoader($container, $locator), - new IniFileLoader($container, $locator), - new PhpFileLoader($container, $locator), - new GlobFileLoader($container, $locator), - new DirectoryLoader($container, $locator), - new ClosureLoader($container), - ]); - - return new DelegatingLoader($resolver); - } - private function isTestEnvironment(): bool { return 0 === strpos($this->getEnvironment(), 'test'); diff --git a/tests/Application/symfony.lock b/tests/Application/symfony.lock deleted file mode 100644 index a432a7f..0000000 --- a/tests/Application/symfony.lock +++ /dev/null @@ -1,890 +0,0 @@ -{ - "akeneo/phpspec-skip-example-extension": { - "version": "v3.0.0" - }, - "behat/behat": { - "version": "v3.5.0" - }, - "behat/gherkin": { - "version": "v4.5.1" - }, - "behat/mink": { - "version": "1.7.x-dev" - }, - "behat/mink-browserkit-driver": { - "version": "1.3.3" - }, - "behat/mink-extension": { - "version": "2.3.1" - }, - "behat/mink-selenium2-driver": { - "version": "v1.3.1" - }, - "behat/transliterator": { - "version": "v1.2.0" - }, - "clue/stream-filter": { - "version": "v1.4.0" - }, - "coduo/php-matcher": { - "version": "3.1.0" - }, - "coduo/php-to-string": { - "version": "2.0.1" - }, - "composer/semver": { - "version": "1.4.2" - }, - "composer/xdebug-handler": { - "version": "1.2.0" - }, - "container-interop/container-interop": { - "version": "1.2.0" - }, - "doctrine/annotations": { - "version": "1.0", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "1.0", - "ref": "cb4152ebcadbe620ea2261da1a1c5a9b8cea7672" - } - }, - "doctrine/cache": { - "version": "v1.8.0" - }, - "doctrine/collections": { - "version": "v1.5.0" - }, - "doctrine/common": { - "version": "v2.9.0" - }, - "doctrine/data-fixtures": { - "version": "v1.3.1" - }, - "doctrine/dbal": { - "version": "v2.8.0" - }, - "doctrine/doctrine-bundle": { - "version": "1.6", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "1.6", - "ref": "ae205d5114e719deb64d2110f56ef910787d1e04" - } - }, - "doctrine/doctrine-cache-bundle": { - "version": "1.3.3" - }, - "doctrine/doctrine-migrations-bundle": { - "version": "1.2", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "1.2", - "ref": "c1431086fec31f17fbcfe6d6d7e92059458facc1" - } - }, - "doctrine/event-manager": { - "version": "v1.0.0" - }, - "doctrine/inflector": { - "version": "v1.3.0" - }, - "doctrine/instantiator": { - "version": "1.1.0" - }, - "doctrine/lexer": { - "version": "v1.0.1" - }, - "doctrine/migrations": { - "version": "v1.8.1" - }, - "doctrine/orm": { - "version": "v2.6.2" - }, - "doctrine/persistence": { - "version": "v1.0.0" - }, - "doctrine/reflection": { - "version": "v1.0.0" - }, - "egulias/email-validator": { - "version": "2.1.5" - }, - "friends-of-behat/mink": { - "version": "v1.8.0" - }, - "friends-of-behat/mink-browserkit-driver": { - "version": "v1.4.0" - }, - "friends-of-behat/mink-extension": { - "version": "v2.4.0" - }, - "friends-of-behat/page-object-extension": { - "version": "0.1" - }, - "friends-of-behat/suite-settings-extension": { - "version": "v1.0.1" - }, - "friends-of-behat/symfony-extension": { - "version": "v1.2.2" - }, - "friends-of-behat/variadic-extension": { - "version": "v1.1.0" - }, - "friendsofphp/php-cs-fixer": { - "version": "2.2", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "2.2", - "ref": "81dee417d2cc60cd1c9d6208dff2ec22a1103e93" - } - }, - "friendsofsymfony/oauth-server-bundle": { - "version": "1.6.1" - }, - "friendsofsymfony/oauth2-php": { - "version": "1.2.3" - }, - "friendsofsymfony/rest-bundle": { - "version": "2.2", - "recipe": { - "repo": "github.com/symfony/recipes-contrib", - "branch": "master", - "version": "2.2", - "ref": "258300d52be6ad59b32a888d5ddafbf9638540ff" - } - }, - "fzaninotto/faker": { - "version": "v1.8.0" - }, - "gedmo/doctrine-extensions": { - "version": "v2.4.36" - }, - "guzzlehttp/guzzle": { - "version": "6.3.3" - }, - "guzzlehttp/promises": { - "version": "v1.3.1" - }, - "guzzlehttp/psr7": { - "version": "1.4.2" - }, - "hamcrest/hamcrest-php": { - "version": "v2.0.0" - }, - "hwi/oauth-bundle": { - "version": "0.6", - "recipe": { - "repo": "github.com/symfony/recipes-contrib", - "branch": "master", - "version": "0.6", - "ref": "20cacc9b2da49d96ea55c8a8dd31324c5be88bc9" - } - }, - "imagine/imagine": { - "version": "v0.7.1" - }, - "instaclick/php-webdriver": { - "version": "1.4.5" - }, - "jdorn/sql-formatter": { - "version": "v1.2.17" - }, - "jean85/pretty-package-versions": { - "version": "1.2" - }, - "jms/metadata": { - "version": "1.6.0" - }, - "jms/parser-lib": { - "version": "1.0.0" - }, - "jms/serializer": { - "version": "1.13.0" - }, - "jms/serializer-bundle": { - "version": "2.0", - "recipe": { - "repo": "github.com/symfony/recipes-contrib", - "branch": "master", - "version": "2.0", - "ref": "fe60ce509ef04a3f40da96e3979bc8d9b13b2372" - } - }, - "knplabs/gaufrette": { - "version": "v0.6.0" - }, - "knplabs/knp-gaufrette-bundle": { - "version": "v0.5.3" - }, - "knplabs/knp-menu": { - "version": "2.3.0" - }, - "knplabs/knp-menu-bundle": { - "version": "v2.2.1" - }, - "lakion/mink-debug-extension": { - "version": "v1.2.3" - }, - "lchrusciel/api-test-case": { - "version": "v3.1.3" - }, - "league/uri": { - "version": "5.3.0" - }, - "league/uri-components": { - "version": "1.8.1" - }, - "league/uri-hostname-parser": { - "version": "1.1.1" - }, - "league/uri-interfaces": { - "version": "1.1.0" - }, - "league/uri-manipulations": { - "version": "1.5.0" - }, - "league/uri-parser": { - "version": "1.4.0" - }, - "league/uri-schemes": { - "version": "1.2.0" - }, - "liip/imagine-bundle": { - "version": "1.8", - "recipe": { - "repo": "github.com/symfony/recipes-contrib", - "branch": "master", - "version": "1.8", - "ref": "7f6676627c1ceeeee204553d24a0545d5f918b7b" - } - }, - "matthiasnoback/symfony-config-test": { - "version": "3.1.1" - }, - "matthiasnoback/symfony-dependency-injection-test": { - "version": "v2.3.1" - }, - "mikey179/vfsstream": { - "version": "v1.6.5" - }, - "mockery/mockery": { - "version": "1.1.0" - }, - "monolog/monolog": { - "version": "1.23.0" - }, - "myclabs/deep-copy": { - "version": "1.8.1" - }, - "nelmio/alice": { - "version": "3.2", - "recipe": { - "repo": "github.com/symfony/recipes-contrib", - "branch": "master", - "version": "3.2", - "ref": "5ef2976310e8f9621c1a722a73bfbe115c1559a3" - } - }, - "nette/finder": { - "version": "v2.4.2" - }, - "nette/robot-loader": { - "version": "v3.0.4" - }, - "nette/utils": { - "version": "v2.5.2" - }, - "nikic/php-parser": { - "version": "v4.3.0" - }, - "ocramius/package-versions": { - "version": "1.3.0" - }, - "ocramius/proxy-manager": { - "version": "2.2.0" - }, - "openlss/lib-array2xml": { - "version": "0.0.10" - }, - "pagerfanta/pagerfanta": { - "version": "v2.0.1" - }, - "pamil/prophecy-common": { - "version": "v0.1.0" - }, - "paragonie/random_compat": { - "version": "v2.0.17" - }, - "payum/iso4217": { - "version": "1.0.1" - }, - "payum/payum": { - "version": "1.5.0" - }, - "payum/payum-bundle": { - "version": "2.3.1" - }, - "phar-io/manifest": { - "version": "1.0.1" - }, - "phar-io/version": { - "version": "1.0.1" - }, - "php": { - "version": "7.3.15" - }, - "php-cs-fixer/diff": { - "version": "v1.3.0" - }, - "php-http/client-common": { - "version": "1.7.0" - }, - "php-http/discovery": { - "version": "1.4.0" - }, - "php-http/guzzle6-adapter": { - "version": "v1.1.1" - }, - "php-http/httplug": { - "version": "v1.1.0" - }, - "php-http/message": { - "version": "1.7.0" - }, - "php-http/message-factory": { - "version": "v1.0.2" - }, - "php-http/promise": { - "version": "v1.0.0" - }, - "phpcollection/phpcollection": { - "version": "0.5.0" - }, - "phpdocumentor/reflection-common": { - "version": "1.0.1" - }, - "phpdocumentor/reflection-docblock": { - "version": "4.3.0" - }, - "phpdocumentor/type-resolver": { - "version": "0.4.0" - }, - "phpoption/phpoption": { - "version": "1.5.0" - }, - "phpspec/php-diff": { - "version": "v1.1.0" - }, - "phpspec/phpspec": { - "version": "4.3.1" - }, - "phpspec/prophecy": { - "version": "1.8.0" - }, - "phpstan/extension-installer": { - "version": "1.0.1" - }, - "phpstan/phpdoc-parser": { - "version": "0.3" - }, - "phpstan/phpstan": { - "version": "0.12.3" - }, - "phpstan/phpstan-doctrine": { - "version": "0.11.5" - }, - "phpstan/phpstan-symfony": { - "version": "0.10.1" - }, - "phpstan/phpstan-webmozart-assert": { - "version": "0.11.2" - }, - "phpunit/php-code-coverage": { - "version": "5.3.2" - }, - "phpunit/php-file-iterator": { - "version": "1.4.5" - }, - "phpunit/php-text-template": { - "version": "1.2.1" - }, - "phpunit/php-timer": { - "version": "1.0.9" - }, - "phpunit/php-token-stream": { - "version": "2.0.2" - }, - "phpunit/phpunit": { - "version": "4.7", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "4.7", - "ref": "c276fa48d4713de91eb410289b3b1834acb7e403" - } - }, - "polishsymfonycommunity/symfony-mocker-container": { - "version": "v1.0.2" - }, - "psr/cache": { - "version": "1.0.1" - }, - "psr/container": { - "version": "1.0.0" - }, - "psr/http-client": { - "version": "1.0.0" - }, - "psr/http-message": { - "version": "1.0.1" - }, - "psr/log": { - "version": "1.0.2" - }, - "psr/simple-cache": { - "version": "1.0.1" - }, - "ralouphie/getallheaders": { - "version": "2.0.5" - }, - "ramsey/uuid": { - "version": "3.8.0" - }, - "sebastian/code-unit-reverse-lookup": { - "version": "1.0.1" - }, - "sebastian/comparator": { - "version": "2.1.3" - }, - "sebastian/diff": { - "version": "2.0.1" - }, - "sebastian/environment": { - "version": "3.1.0" - }, - "sebastian/exporter": { - "version": "3.1.0" - }, - "sebastian/global-state": { - "version": "2.0.0" - }, - "sebastian/object-enumerator": { - "version": "3.0.3" - }, - "sebastian/object-reflector": { - "version": "1.1.1" - }, - "sebastian/recursion-context": { - "version": "3.0.0" - }, - "sebastian/resource-operations": { - "version": "1.0.0" - }, - "sebastian/version": { - "version": "2.0.1" - }, - "sensiolabs/security-checker": { - "version": "4.0", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "4.0", - "ref": "421933bf8f0e75546ac8e00cb3eb12904fa2ac1a" - } - }, - "slevomat/coding-standard": { - "version": "4.6.3" - }, - "sonata-project/block-bundle": { - "version": "3.12.1" - }, - "sonata-project/cache": { - "version": "2.0.1" - }, - "sonata-project/doctrine-extensions": { - "version": "1.1.0" - }, - "sonata-project/form-extensions": { - "version": "1.0.0" - }, - "sonata-project/twig-extensions": { - "version": "1.1.1" - }, - "squizlabs/php_codesniffer": { - "version": "3.3.1" - }, - "stof/doctrine-extensions-bundle": { - "version": "1.2", - "recipe": { - "repo": "github.com/symfony/recipes-contrib", - "branch": "master", - "version": "1.2", - "ref": "6c1ceb662f8997085f739cd089bfbef67f245983" - } - }, - "stripe/stripe-php": { - "version": "v6.28.1" - }, - "swiftmailer/swiftmailer": { - "version": "v6.1.2" - }, - "sylius-labs/association-hydrator": { - "version": "v1.1.0" - }, - "sylius-labs/coding-standard": { - "version": "v2.0.0" - }, - "sylius-labs/polyfill-symfony-event-dispatcher": { - "version": "v1.0.0" - }, - "sylius/fixtures-bundle": { - "version": "v1.4.1" - }, - "sylius/grid-bundle": { - "version": "v1.5.1" - }, - "sylius/mailer-bundle": { - "version": "v1.4.4" - }, - "sylius/registry": { - "version": "v1.4.1" - }, - "sylius/resource-bundle": { - "version": "v1.4.4" - }, - "sylius/sylius": { - "version": "v1.3.6" - }, - "sylius/theme-bundle": { - "version": "v1.4.6" - }, - "symfony/asset": { - "version": "v4.1.3" - }, - "symfony/browser-kit": { - "version": "v4.1.3" - }, - "symfony/cache": { - "version": "v4.1.3" - }, - "symfony/cache-contracts": { - "version": "v1.1.5" - }, - "symfony/config": { - "version": "v4.1.3" - }, - "symfony/console": { - "version": "3.3", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "3.3", - "ref": "e3868d2f4a5104f19f844fe551099a00c6562527" - } - }, - "symfony/contracts": { - "version": "v1.1.8" - }, - "symfony/css-selector": { - "version": "v4.1.3" - }, - "symfony/debug": { - "version": "v4.1.3" - }, - "symfony/debug-bundle": { - "version": "4.1", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "4.1", - "ref": "f8863cbad2f2e58c4b65fa1eac892ab189971bea" - } - }, - "symfony/dependency-injection": { - "version": "v4.1.3" - }, - "symfony/doctrine-bridge": { - "version": "v4.1.3" - }, - "symfony/dom-crawler": { - "version": "v4.1.3" - }, - "symfony/dotenv": { - "version": "v4.1.3" - }, - "symfony/error-handler": { - "version": "v4.4.8" - }, - "symfony/event-dispatcher": { - "version": "v4.1.3" - }, - "symfony/event-dispatcher-contracts": { - "version": "v1.1.5" - }, - "symfony/expression-language": { - "version": "v4.1.3" - }, - "symfony/filesystem": { - "version": "v4.1.3" - }, - "symfony/finder": { - "version": "v4.1.3" - }, - "symfony/flex": { - "version": "1.0", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "1.0", - "ref": "e921bdbfe20cdefa3b82f379d1cd36df1bc8d115" - } - }, - "symfony/form": { - "version": "v4.1.3" - }, - "symfony/framework-bundle": { - "version": "3.3", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "3.3", - "ref": "87c585d24de9f43bca80ebcfd5cf5cb39445d95f" - } - }, - "symfony/http-client": { - "version": "v5.0.5" - }, - "symfony/http-foundation": { - "version": "v4.1.3" - }, - "symfony/http-kernel": { - "version": "v4.1.3" - }, - "symfony/inflector": { - "version": "v4.1.3" - }, - "symfony/intl": { - "version": "v4.1.3" - }, - "symfony/mime": { - "version": "v4.3.1" - }, - "symfony/monolog-bridge": { - "version": "v4.1.3" - }, - "symfony/monolog-bundle": { - "version": "3.1", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "3.1", - "ref": "18ebf5a940573a20de06f9c4060101eeb438cf3d" - } - }, - "symfony/options-resolver": { - "version": "v4.1.3" - }, - "symfony/polyfill-ctype": { - "version": "v1.9.0" - }, - "symfony/polyfill-iconv": { - "version": "v1.9.0" - }, - "symfony/polyfill-intl-icu": { - "version": "v1.9.0" - }, - "symfony/polyfill-intl-idn": { - "version": "v1.11.0" - }, - "symfony/polyfill-mbstring": { - "version": "v1.9.0" - }, - "symfony/polyfill-php70": { - "version": "v1.9.0" - }, - "symfony/polyfill-php72": { - "version": "v1.9.0" - }, - "symfony/polyfill-php73": { - "version": "v1.11.0" - }, - "symfony/polyfill-php80": { - "version": "v1.17.0" - }, - "symfony/process": { - "version": "v4.1.3" - }, - "symfony/property-access": { - "version": "v4.1.3" - }, - "symfony/proxy-manager-bridge": { - "version": "v4.1.3" - }, - "symfony/routing": { - "version": "4.0", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "4.0", - "ref": "cda8b550123383d25827705d05a42acf6819fe4e" - } - }, - "symfony/security": { - "version": "v4.1.3" - }, - "symfony/security-bundle": { - "version": "3.3", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "3.3", - "ref": "f8a63faa0d9521526499c0a8f403c9964ecb0527" - } - }, - "symfony/service-contracts": { - "version": "v1.1.6" - }, - "symfony/stopwatch": { - "version": "v4.1.3" - }, - "symfony/swiftmailer-bundle": { - "version": "2.5", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "2.5", - "ref": "3db029c03e452b4a23f7fc45cec7c922c2247eb8" - } - }, - "symfony/templating": { - "version": "v4.1.3" - }, - "symfony/thanks": { - "version": "v1.0.8" - }, - "symfony/translation": { - "version": "3.3", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "3.3", - "ref": "6bcd6c570c017ea6ae5a7a6a027c929fd3542cd8" - } - }, - "symfony/translation-contracts": { - "version": "v1.1.6" - }, - "symfony/twig-bridge": { - "version": "v4.1.3" - }, - "symfony/twig-bundle": { - "version": "3.3", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "3.3", - "ref": "f75ac166398e107796ca94cc57fa1edaa06ec47f" - } - }, - "symfony/validator": { - "version": "4.1", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "4.1", - "ref": "0cdc982334f45d554957a6167e030482795bf9d7" - } - }, - "symfony/var-dumper": { - "version": "v4.1.3" - }, - "symfony/var-exporter": { - "version": "v4.2.1" - }, - "symfony/web-profiler-bundle": { - "version": "3.3", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "master", - "version": "3.3", - "ref": "6bdfa1a95f6b2e677ab985cd1af2eae35d62e0f6" - } - }, - "symfony/yaml": { - "version": "v4.1.3" - }, - "symplify/coding-standard": { - "version": "v4.6.1" - }, - "symplify/easy-coding-standard": { - "version": "v4.6.1" - }, - "symplify/package-builder": { - "version": "v4.6.1" - }, - "symplify/set-config-resolver": { - "version": "v7.1.3" - }, - "symplify/smart-file-system": { - "version": "v7.1.3" - }, - "theofidry/alice-data-fixtures": { - "version": "1.0", - "recipe": { - "repo": "github.com/symfony/recipes-contrib", - "branch": "master", - "version": "1.0", - "ref": "fe5a50faf580eb58f08ada2abe8afbd2d4941e05" - } - }, - "theseer/tokenizer": { - "version": "1.1.0" - }, - "twig/intl-extra": { - "version": "v2.12.5" - }, - "twig/twig": { - "version": "v2.5.0" - }, - "webmozart/assert": { - "version": "1.3.0" - }, - "white-october/pagerfanta-bundle": { - "version": "v1.2.1" - }, - "willdurand/hateoas": { - "version": "2.12.0" - }, - "willdurand/hateoas-bundle": { - "version": "1.4.0" - }, - "willdurand/jsonp-callback-validator": { - "version": "v1.1.0" - }, - "willdurand/negotiation": { - "version": "v2.3.1" - }, - "winzou/state-machine": { - "version": "0.3.3" - }, - "winzou/state-machine-bundle": { - "version": "v0.3.1" - }, - "zendframework/zend-code": { - "version": "3.3.1" - }, - "zendframework/zend-eventmanager": { - "version": "3.2.1" - }, - "zendframework/zend-hydrator": { - "version": "2.4.0" - }, - "zendframework/zend-stdlib": { - "version": "3.2.0" - } -} diff --git a/tests/Application/symfony.lock b/tests/Application/symfony.lock new file mode 120000 index 0000000..17161cb --- /dev/null +++ b/tests/Application/symfony.lock @@ -0,0 +1 @@ +../../vendor/sylius/sylius/symfony.lock \ No newline at end of file diff --git a/tests/Application/templates b/tests/Application/templates new file mode 120000 index 0000000..71cc2c3 --- /dev/null +++ b/tests/Application/templates @@ -0,0 +1 @@ +../../vendor/sylius/sylius/templates \ No newline at end of file diff --git a/tests/Application/templates/.gitignore b/tests/Application/templates/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/tests/Application/translations b/tests/Application/translations new file mode 120000 index 0000000..3993c39 --- /dev/null +++ b/tests/Application/translations @@ -0,0 +1 @@ +../../vendor/sylius/sylius/translations \ No newline at end of file diff --git a/tests/Application/translations/.gitignore b/tests/Application/translations/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/tests/Application/webpack.config.js b/tests/Application/webpack.config.js new file mode 120000 index 0000000..5603856 --- /dev/null +++ b/tests/Application/webpack.config.js @@ -0,0 +1 @@ +../../vendor/sylius/sylius/webpack.config.js \ No newline at end of file From cbcf526a8883570b735a077f5eb27aeb827d58a7 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 15:28:58 +0100 Subject: [PATCH 04/31] Add rich editor config symlinks --- .gitignore | 1 - tests/Application/.gitignore | 44 ++++++++++++++++++- tests/Application/.php-version | 1 + .../Application/config/packages/doctrine.yaml | 7 ++- ...monsieurbiz_sylius_rich_editor_plugin.yaml | 1 + ...monsieurbiz_sylius_rich_editor_plugin.yaml | 1 + 6 files changed, 52 insertions(+), 3 deletions(-) mode change 120000 => 100644 tests/Application/.gitignore create mode 120000 tests/Application/.php-version mode change 120000 => 100644 tests/Application/config/packages/doctrine.yaml create mode 120000 tests/Application/config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml create mode 120000 tests/Application/config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml diff --git a/.gitignore b/.gitignore index 12d0d90..1d53064 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ /tests/Application/yarn.lock /tests/Application/package-lock.json -/tests/Application/.php-version /behat.yml /phpspec.yml diff --git a/tests/Application/.gitignore b/tests/Application/.gitignore deleted file mode 120000 index 9b171bb..0000000 --- a/tests/Application/.gitignore +++ /dev/null @@ -1 +0,0 @@ -../../vendor/sylius/sylius/.gitignore \ No newline at end of file diff --git a/tests/Application/.gitignore b/tests/Application/.gitignore new file mode 100644 index 0000000..3f23404 --- /dev/null +++ b/tests/Application/.gitignore @@ -0,0 +1,43 @@ +/public/assets +/public/css +/public/js +/public/media +!/public/media/image/.gitkeep +/public/build + +/node_modules + +/etc/build/* +!/etc/build/.gitignore + +/behat.yml +/phpspec.yml + +/docker-compose.override.yaml +/docker-compose.override.yml +/docker/mysql/data/ + +###> symfony/framework-bundle ### +/.env.*.local +/.env.local +/.env.local.php +/config/secrets/prod/prod.decrypt.private.php +/public/bundles +/src/.preload.php +/var/ +/vendor/ +###< symfony/framework-bundle ### + +###> friendsofphp/php-cs-fixer ### +/.php_cs +/.php_cs.cache +###< friendsofphp/php-cs-fixer ### + +###> lexik/jwt-authentication-bundle ### +/config/jwt/*.pem +###< lexik/jwt-authentication-bundle ### + +###> phpunit/phpunit ### +/phpunit.xml +.phpunit.result.cache +###< phpunit/phpunit ### diff --git a/tests/Application/.php-version b/tests/Application/.php-version new file mode 120000 index 0000000..fffb853 --- /dev/null +++ b/tests/Application/.php-version @@ -0,0 +1 @@ +../../.php-version \ No newline at end of file diff --git a/tests/Application/config/packages/doctrine.yaml b/tests/Application/config/packages/doctrine.yaml deleted file mode 120000 index c7c22c0..0000000 --- a/tests/Application/config/packages/doctrine.yaml +++ /dev/null @@ -1 +0,0 @@ -../../../../vendor/sylius/sylius/config/packages/doctrine.yaml \ No newline at end of file diff --git a/tests/Application/config/packages/doctrine.yaml b/tests/Application/config/packages/doctrine.yaml new file mode 100644 index 0000000..ef8dbe7 --- /dev/null +++ b/tests/Application/config/packages/doctrine.yaml @@ -0,0 +1,6 @@ +doctrine: + dbal: + driver: 'pdo_mysql' + charset: utf8mb4 + + url: '%env(resolve:DATABASE_URL)%' diff --git a/tests/Application/config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml b/tests/Application/config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml new file mode 120000 index 0000000..008a307 --- /dev/null +++ b/tests/Application/config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml @@ -0,0 +1 @@ +../../../../vendor/monsieurbiz/sylius-rich-editor-plugin/recipes/2.0-dev/config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml \ No newline at end of file diff --git a/tests/Application/config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml b/tests/Application/config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml new file mode 120000 index 0000000..da91117 --- /dev/null +++ b/tests/Application/config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml @@ -0,0 +1 @@ +../../../../vendor/monsieurbiz/sylius-rich-editor-plugin/recipes/2.0-dev/config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml \ No newline at end of file From 3c6349ec01b8ec3563aea4eda75214b30ed1dccd Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 15:29:09 +0100 Subject: [PATCH 05/31] Add plugin config symlinks and files --- .../config/packages/monsieurbiz_sylius_cms_page_plugin.yaml | 1 + .../config/routes/monsieurbiz_sylius_cms_page_plugin.yaml | 1 + tests/Application/templates | 1 - tests/Application/templates/.gitignore | 0 4 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 tests/Application/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml create mode 120000 tests/Application/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml delete mode 120000 tests/Application/templates create mode 100644 tests/Application/templates/.gitignore diff --git a/tests/Application/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml b/tests/Application/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml new file mode 120000 index 0000000..f607c85 --- /dev/null +++ b/tests/Application/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml @@ -0,0 +1 @@ +../../../../recipes/1.0-dev/config/packages/monsieurbiz_sylius_cms_page_plugin.yaml \ No newline at end of file diff --git a/tests/Application/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml b/tests/Application/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml new file mode 120000 index 0000000..8358112 --- /dev/null +++ b/tests/Application/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml @@ -0,0 +1 @@ +../../../../recipes/1.0-dev/config/routes/monsieurbiz_sylius_cms_page_plugin.yaml \ No newline at end of file diff --git a/tests/Application/templates b/tests/Application/templates deleted file mode 120000 index 71cc2c3..0000000 --- a/tests/Application/templates +++ /dev/null @@ -1 +0,0 @@ -../../vendor/sylius/sylius/templates \ No newline at end of file diff --git a/tests/Application/templates/.gitignore b/tests/Application/templates/.gitignore new file mode 100644 index 0000000..e69de29 From bf864b884aae19d6c6de149b8a8267f17161bee3 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 17:24:29 +0100 Subject: [PATCH 06/31] Require auth-server-bundle for 1.9 and keep old version compatibility --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c890c06..b4166c0 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,8 @@ "php": "~7.4", "sylius/sylius": "^1.8", "gedmo/doctrine-extensions": "^2.4.12 || ^3.0", - "monsieurbiz/sylius-rich-editor-plugin": "^2.0@RC" + "monsieurbiz/sylius-rich-editor-plugin": "^2.0@RC", + "friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev" }, "require-dev": { "behat/behat": "^3.6.1", From f04abfeff2998d501f7b6e28e8275e47fb46ecbe Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 17:24:57 +0100 Subject: [PATCH 07/31] Update plugin sources for Sylius 1.9 compatibility --- src/Resources/config/routing/admin.yaml | 2 +- src/Resources/config/services.yaml | 1 + src/Resources/config/sylius/grid.yaml | 2 +- src/Resources/views/Admin/Page/_form.html.twig | 10 +++++++++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Resources/config/routing/admin.yaml b/src/Resources/config/routing/admin.yaml index d548733..2800cee 100644 --- a/src/Resources/config/routing/admin.yaml +++ b/src/Resources/config/routing/admin.yaml @@ -3,7 +3,7 @@ monsieurbiz_sylius_cms_page_admin: resource: | alias: monsieurbiz_cms_page.page section: admin - templates: SyliusAdminBundle:Crud + templates: "@SyliusAdmin\\Crud" except: ['show'] redirect: update grid: monsieurbiz_cms_page diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index 17bad62..a49bc98 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -29,6 +29,7 @@ services: # Fixtures MonsieurBiz\SyliusCmsPagePlugin\Fixture\PageFixture: arguments: + $objectManager: '@doctrine.orm.default_entity_manager' $exampleFactory: '@MonsieurBiz\SyliusCmsPagePlugin\Fixture\Factory\PageFixtureFactory' # Routing Context diff --git a/src/Resources/config/sylius/grid.yaml b/src/Resources/config/sylius/grid.yaml index 8728ebf..546696e 100644 --- a/src/Resources/config/sylius/grid.yaml +++ b/src/Resources/config/sylius/grid.yaml @@ -20,7 +20,7 @@ sylius_grid: label: monsieurbiz_cms_page.ui.form.enabled sortable: ~ options: - template: SyliusUiBundle:Grid/Field:enabled.html.twig + template: "@SyliusUi/Grid/Field/enabled.html.twig" actions: main: create: diff --git a/src/Resources/views/Admin/Page/_form.html.twig b/src/Resources/views/Admin/Page/_form.html.twig index ee685cd..0ab2585 100644 --- a/src/Resources/views/Admin/Page/_form.html.twig +++ b/src/Resources/views/Admin/Page/_form.html.twig @@ -9,7 +9,15 @@
{{ form_errors(form) }} - {{ form_rest(form) }} + {# Issue with Symfony 5, Sylius 1.9 : https://github.com/Sylius/Sylius/pull/12439 #} + {# So we render the fields #} + {% for item in form.children %} + {% if item.vars.name != '_token' %} + {{ form_row(item) }} + {% endif %} + {% endfor %} + {# Instead of #} + {# {{ form_rest(form) }} #}

From 79fa50b0011d002dc119679b65521257adfe22ef Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 17:23:13 +0100 Subject: [PATCH 08/31] Update symfony.lock --- symfony.lock | 479 ++++++++++++++++++++++----------------------------- 1 file changed, 210 insertions(+), 269 deletions(-) diff --git a/symfony.lock b/symfony.lock index 307cf4e..055cdd9 100644 --- a/symfony.lock +++ b/symfony.lock @@ -1,6 +1,12 @@ { + "aeon-php/calendar": { + "version": "0.16.1" + }, + "alcohol/iso4217": { + "version": "3.1.5" + }, "amphp/amp": { - "version": "v2.5.1" + "version": "v2.5.2" }, "amphp/byte-stream": { "version": "v1.8.0" @@ -19,11 +25,14 @@ "src/Entity/.gitignore" ] }, + "babdev/pagerfanta-bundle": { + "version": "v2.9.0" + }, "behat/behat": { "version": "v3.8.1" }, "behat/gherkin": { - "version": "v4.6.2" + "version": "v4.8.0" }, "behat/mink-selenium2-driver": { "version": "v1.4.0" @@ -35,19 +44,19 @@ "version": "v1.5.0" }, "coduo/php-matcher": { - "version": "4.0.2" + "version": "6.0.4" }, "coduo/php-to-string": { - "version": "3.1.0" + "version": "3.2.0" }, "composer/semver": { - "version": "3.2.2" + "version": "3.2.4" }, "composer/xdebug-handler": { - "version": "1.4.4" + "version": "1.4.5" }, "dealerdirect/phpcodesniffer-composer-installer": { - "version": "v0.7.0" + "version": "v0.7.1" }, "dmore/behat-chrome-extension": { "version": "1.3.0" @@ -77,21 +86,21 @@ "version": "1.6.7" }, "doctrine/common": { - "version": "2.13.3" + "version": "3.1.1" }, "doctrine/data-fixtures": { - "version": "1.4.4" + "version": "1.5.0" }, "doctrine/dbal": { - "version": "2.12.0" + "version": "2.12.1" }, "doctrine/doctrine-bundle": { - "version": "1.12", + "version": "2.0", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "1.12", - "ref": "b11d5292f574a9cd092d506c899d05c79cf4d613" + "version": "2.0", + "ref": "40631978d2c4adc9b11220b13eba539b727c36a8" }, "files": [ "config/packages/doctrine.yaml", @@ -100,9 +109,6 @@ "src/Repository/.gitignore" ] }, - "doctrine/doctrine-cache-bundle": { - "version": "1.4.0" - }, "doctrine/doctrine-migrations-bundle": { "version": "2.2", "recipe": { @@ -120,55 +126,58 @@ "version": "1.1.1" }, "doctrine/inflector": { - "version": "1.3.1" + "version": "2.0.3" }, "doctrine/instantiator": { - "version": "1.3.1" + "version": "1.4.0" }, "doctrine/lexer": { "version": "1.2.1" }, "doctrine/migrations": { - "version": "3.0.1" + "version": "3.1.0" }, "doctrine/orm": { - "version": "2.7.4" + "version": "2.8.2" }, "doctrine/persistence": { - "version": "1.3.8" + "version": "2.1.0" }, - "doctrine/reflection": { - "version": "1.2.2" + "doctrine/sql-formatter": { + "version": "1.1.1" }, "egulias/email-validator": { - "version": "2.1.23" + "version": "2.1.25" }, "ergebnis/composer-normalize": { - "version": "2.9.0" + "version": "2.13.3" }, "ergebnis/json-normalizer": { - "version": "0.13.1" + "version": "1.0.3" }, "ergebnis/json-printer": { "version": "3.1.1" }, + "fakerphp/faker": { + "version": "v1.13.0" + }, "felixfbecker/advanced-json-rpc": { - "version": "v3.1.1" + "version": "v3.2.0" }, "felixfbecker/language-server-protocol": { - "version": "v1.5.0" + "version": "1.5.1" }, "fig/link-util": { - "version": "1.1.1" + "version": "1.1.2" }, "friends-of-behat/mink": { - "version": "v1.8.0" + "version": "v1.9.0" }, "friends-of-behat/mink-browserkit-driver": { - "version": "v1.4.0" + "version": "v1.5.0" }, "friends-of-behat/mink-extension": { - "version": "v2.4.0" + "version": "v2.5.0" }, "friends-of-behat/page-object-extension": { "version": "v0.3.2" @@ -180,31 +189,28 @@ "branch": "master", "version": "2.0", "ref": "3d21344765fd3440a85bdd27d4cada186ec628bd" - }, - "files": [ - "behat.yml.dist", - "config/services_test.yaml", - "features/demo.feature", - "tests/Behat/DemoContext.php" - ] + } }, "friends-of-behat/variadic-extension": { - "version": "v1.3.0" + "version": "v1.4.0" }, "friendsofphp/php-cs-fixer": { - "version": "2.2", + "version": "2.16", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "2.2", - "ref": "cc05ab6abf6894bddb9bbd6a252459010ebe040b" + "version": "2.16", + "ref": "c1947bad147704aeaf0285745f0baae927a58959" }, "files": [ ".php_cs.dist" ] }, + "friendsofphp/proxy-manager-lts": { + "version": "v1.0.3" + }, "friendsofsymfony/oauth-server-bundle": { - "version": "1.6.2" + "version": "2.0.x-dev" }, "friendsofsymfony/oauth2-php": { "version": "1.3.0" @@ -216,22 +222,16 @@ "branch": "master", "version": "2.2", "ref": "cad41ef93d6150067ae2bb3c7fd729492dff6f0a" - }, - "files": [ - "config/packages/fos_rest.yaml" - ] - }, - "fzaninotto/faker": { - "version": "v1.9.1" + } }, "gedmo/doctrine-extensions": { - "version": "v2.4.42" + "version": "v3.0.3" }, "guzzlehttp/guzzle": { "version": "6.5.5" }, "guzzlehttp/promises": { - "version": "1.4.0" + "version": "1.4.1" }, "guzzlehttp/psr7": { "version": "1.7.0" @@ -246,11 +246,7 @@ "branch": "master", "version": "0.6", "ref": "20cacc9b2da49d96ea55c8a8dd31324c5be88bc9" - }, - "files": [ - "config/packages/hwi_oauth.yaml", - "config/routes/hwi_oauth_routing.yaml" - ] + } }, "imagine/imagine": { "version": "1.2.4" @@ -258,34 +254,23 @@ "instaclick/php-webdriver": { "version": "1.4.7" }, - "jdorn/sql-formatter": { - "version": "v1.2.17" - }, "jean85/pretty-package-versions": { - "version": "1.5.1" + "version": "1.6.0" }, "jms/metadata": { - "version": "1.7.0" - }, - "jms/parser-lib": { - "version": "1.0.0" + "version": "2.5.0" }, "jms/serializer": { - "version": "1.14.1" + "version": "3.12.0" }, "jms/serializer-bundle": { - "version": "2.0", + "version": "3.0", "recipe": { "repo": "github.com/symfony/recipes-contrib", "branch": "master", - "version": "2.0", - "ref": "fe60ce509ef04a3f40da96e3979bc8d9b13b2372" - }, - "files": [ - "config/packages/dev/jms_serializer.yaml", - "config/packages/jms_serializer.yaml", - "config/packages/prod/jms_serializer.yaml" - ] + "version": "3.0", + "ref": "384cec52df45f3bfd46a09930d6960a58872b268" + } }, "justinrainbow/json-schema": { "version": "5.2.10" @@ -297,46 +282,37 @@ "version": "v0.7.1" }, "knplabs/knp-menu": { - "version": "v3.1.2" + "version": "v3.1.3" }, "knplabs/knp-menu-bundle": { - "version": "v3.0.0" + "version": "v3.1.0" }, "laminas/laminas-code": { "version": "3.4.1" }, "laminas/laminas-eventmanager": { - "version": "3.3.0" + "version": "3.3.1" }, "laminas/laminas-zendframework-bridge": { - "version": "1.1.1" + "version": "1.2.0" }, "lchrusciel/api-test-case": { - "version": "v5.0.0" + "version": "v5.1.0" + }, + "lcobucci/clock": { + "version": "2.0.0" }, "lcobucci/jwt": { - "version": "3.3.3" + "version": "4.1.2" }, "league/uri": { - "version": "5.3.0" + "version": "6.4.0" }, "league/uri-components": { - "version": "1.8.2" - }, - "league/uri-hostname-parser": { - "version": "1.1.1" + "version": "2.3.0" }, "league/uri-interfaces": { - "version": "1.1.1" - }, - "league/uri-manipulations": { - "version": "1.5.0" - }, - "league/uri-parser": { - "version": "1.4.1" - }, - "league/uri-schemes": { - "version": "1.2.1" + "version": "2.2.0" }, "lexik/jwt-authentication-bundle": { "version": "2.5", @@ -357,11 +333,7 @@ "branch": "master", "version": "1.8", "ref": "5a5bdc2d0e2533ed6935d5ae562f2b318a8fc1ee" - }, - "files": [ - "config/packages/liip_imagine.yaml", - "config/routes/liip_imagine.yaml" - ] + } }, "localheinz/diff": { "version": "1.1.1" @@ -370,19 +342,19 @@ "version": "1.1.0" }, "matthiasnoback/symfony-config-test": { - "version": "4.2.0" + "version": "4.2.1" }, "matthiasnoback/symfony-dependency-injection-test": { - "version": "4.2.0" + "version": "4.2.1" }, "mikey179/vfsstream": { "version": "v1.6.8" }, "mockery/mockery": { - "version": "1.4.2" + "version": "1.4.3" }, "monolog/monolog": { - "version": "2.1.1" + "version": "2.2.0" }, "monsieurbiz/sylius-rich-editor-plugin": { "version": "1.0", @@ -391,14 +363,10 @@ "branch": "master", "version": "1.0", "ref": "6658acdeb3fabab4929d25cd7209444a36a5c912" - }, - "files": [ - "config/packages/monsieurbiz_sylius_rich_editor_plugin.yaml", - "config/routes/monsieurbiz_sylius_rich_editor_plugin.yaml" - ] + } }, "myclabs/deep-copy": { - "version": "1.10.1" + "version": "1.10.2" }, "namshi/jose": { "version": "7.2.3" @@ -423,34 +391,31 @@ "version": "v2.5.2" }, "nette/robot-loader": { - "version": "v3.3.1" + "version": "v3.4.0" }, "nette/utils": { - "version": "v3.1.3" + "version": "v3.2.2" }, "nikic/php-parser": { - "version": "v4.10.2" - }, - "ocramius/proxy-manager": { - "version": "2.8.1" + "version": "v4.10.4" }, "openlss/lib-array2xml": { "version": "1.0.0" }, "pagerfanta/pagerfanta": { - "version": "v2.4.1" + "version": "v2.7.1" }, "pamil/prophecy-common": { "version": "v0.1.0" }, "paragonie/random_compat": { - "version": "v2.0.19" + "version": "v9.99.99" }, "payum/iso4217": { "version": "1.0.1" }, "payum/payum": { - "version": "1.6.0" + "version": "1.6.1" }, "payum/payum-bundle": { "version": "2.4", @@ -458,23 +423,17 @@ "repo": "github.com/symfony/recipes-contrib", "branch": "master", "version": "2.4", - "ref": "72ad834a0f4a99175beddb5e2d049136f4a50a67" - }, - "files": [ - "config/packages/payum.yaml" - ] + "ref": "79e716de6d703e2afa54008c0d535795f0781efb" + } }, "pdepend/pdepend": { "version": "2.8.0" }, "phar-io/manifest": { - "version": "1.0.3" - }, - "phar-io/version": { "version": "2.0.1" }, - "php": { - "version": "7.4" + "phar-io/version": { + "version": "3.1.0" }, "php-cs-fixer/diff": { "version": "v1.3.1" @@ -483,16 +442,16 @@ "version": "2.3.0" }, "php-http/discovery": { - "version": "1.12.0" + "version": "1.13.0" }, "php-http/guzzle6-adapter": { - "version": "v2.0.1" + "version": "v2.0.2" }, "php-http/httplug": { "version": "2.2.0" }, "php-http/message": { - "version": "1.9.1" + "version": "1.11.0" }, "php-http/message-factory": { "version": "v1.0.2" @@ -500,9 +459,6 @@ "php-http/promise": { "version": "1.1.0" }, - "phpcollection/phpcollection": { - "version": "0.5.0" - }, "phpdocumentor/reflection-common": { "version": "2.2.0" }, @@ -515,17 +471,14 @@ "phpmd/phpmd": { "version": "2.9.1" }, - "phpoption/phpoption": { - "version": "1.7.5" - }, "phpspec/php-diff": { "version": "v1.1.3" }, "phpspec/phpspec": { - "version": "6.3.0" + "version": "6.3.1" }, "phpspec/prophecy": { - "version": "1.12.1" + "version": "1.12.2" }, "phpstan/phpdoc-parser": { "version": "0.4.9" @@ -540,19 +493,19 @@ "version": "0.12.7" }, "phpunit/php-code-coverage": { - "version": "7.0.10" + "version": "7.0.14" }, "phpunit/php-file-iterator": { - "version": "2.0.2" + "version": "2.0.3" }, "phpunit/php-text-template": { "version": "1.2.1" }, "phpunit/php-timer": { - "version": "2.1.2" + "version": "2.1.3" }, "phpunit/php-token-stream": { - "version": "3.1.1" + "version": "4.0.4" }, "phpunit/phpunit": { "version": "4.7", @@ -578,7 +531,7 @@ "version": "1.0.1" }, "psr/container": { - "version": "1.0.0" + "version": "1.1.1" }, "psr/event-dispatcher": { "version": "1.0.0" @@ -608,37 +561,37 @@ "version": "3.9.3" }, "sebastian/code-unit-reverse-lookup": { - "version": "1.0.1" + "version": "1.0.2" }, "sebastian/comparator": { - "version": "3.0.2" + "version": "3.0.3" }, "sebastian/diff": { - "version": "3.0.2" + "version": "3.0.3" }, "sebastian/environment": { - "version": "4.2.3" + "version": "4.2.4" }, "sebastian/exporter": { - "version": "3.1.2" + "version": "3.1.3" }, "sebastian/global-state": { - "version": "3.0.0" + "version": "3.0.1" }, "sebastian/object-enumerator": { - "version": "3.0.3" + "version": "3.0.4" }, "sebastian/object-reflector": { - "version": "1.1.1" + "version": "1.1.2" }, "sebastian/recursion-context": { - "version": "3.0.0" + "version": "3.0.1" }, "sebastian/resource-operations": { - "version": "2.0.1" + "version": "2.0.2" }, "sebastian/type": { - "version": "1.1.3" + "version": "1.1.4" }, "sebastian/version": { "version": "2.0.1" @@ -647,28 +600,25 @@ "version": "6.4.1" }, "sonata-project/block-bundle": { - "version": "4.2.0" + "version": "4.5.2" }, "sonata-project/cache": { - "version": "2.0.1" + "version": "2.1.1" }, "sonata-project/doctrine-extensions": { - "version": "1.9.1" + "version": "1.11.0" }, "sonata-project/form-extensions": { - "version": "1.0", + "version": "1.4", "recipe": { "repo": "github.com/symfony/recipes-contrib", "branch": "master", - "version": "1.0", - "ref": "8273133183506fe6ec66895e8890227b0dfba1c7" - }, - "files": [ - "config/packages/sonata_form.yaml" - ] + "version": "1.4", + "ref": "bfc222606aea5418345af70104d974a25dc7c441" + } }, "sonata-project/twig-extensions": { - "version": "1.4.1" + "version": "1.5.1" }, "squizlabs/php_codesniffer": { "version": "3.0", @@ -677,10 +627,7 @@ "branch": "master", "version": "3.0", "ref": "0dc9cceda799fd3a08b96987e176a261028a3709" - }, - "files": [ - "phpcs.xml.dist" - ] + } }, "sspooky13/yaml-standards": { "version": "5.1.2" @@ -692,61 +639,67 @@ "branch": "master", "version": "1.2", "ref": "6c1ceb662f8997085f739cd089bfbef67f245983" - }, - "files": [ - "config/packages/stof_doctrine_extensions.yaml" - ] + } }, "swiftmailer/swiftmailer": { - "version": "v6.2.3" + "version": "v6.2.7" }, "sylius-labs/association-hydrator": { - "version": "v1.1.2" + "version": "v1.1.4" }, "sylius-labs/coding-standard": { - "version": "v3.2.1" + "version": "v3.2.2" }, "sylius-labs/doctrine-migrations-extra-bundle": { - "version": "v0.1.3" + "version": "v0.1.4" }, "sylius-labs/polyfill-symfony-event-dispatcher": { + "version": "v1.0.1" + }, + "sylius-labs/polyfill-symfony-framework-bundle": { + "version": "v1.0.0" + }, + "sylius-labs/polyfill-symfony-security": { "version": "v1.0.0" }, "sylius/fixtures-bundle": { "version": "v1.7.0" }, "sylius/grid-bundle": { - "version": "v1.7.5" + "version": "v1.8.0" }, "sylius/mailer-bundle": { - "version": "v1.5.1" + "version": "v1.6.0" }, "sylius/registry": { - "version": "v1.5.1" + "version": "v1.6.0" }, "sylius/resource-bundle": { - "version": "v1.6.4" + "version": "v1.7.1" }, "sylius/sylius": { - "version": "v1.8.4" + "version": "v1.9.0" }, "sylius/theme-bundle": { - "version": "v1.5.1" + "version": "v2.1.1" + }, + "symfony/amqp-messenger": { + "version": "v5.2.4" }, "symfony/asset": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/browser-kit": { - "version": "v4.4.16" + "version": "v4.4.20" }, "symfony/cache": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/cache-contracts": { "version": "v2.2.0" }, "symfony/config": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/console": { "version": "4.4", @@ -762,10 +715,10 @@ ] }, "symfony/css-selector": { - "version": "v5.1.8" + "version": "v5.2.4" }, "symfony/debug": { - "version": "v4.4.16" + "version": "v4.4.20" }, "symfony/debug-bundle": { "version": "4.1", @@ -780,37 +733,40 @@ ] }, "symfony/dependency-injection": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/deprecation-contracts": { "version": "v2.2.0" }, "symfony/doctrine-bridge": { - "version": "v4.4.15" + "version": "v4.4.20" + }, + "symfony/doctrine-messenger": { + "version": "v5.2.4" }, "symfony/dom-crawler": { - "version": "v5.1.8" + "version": "v5.2.4" }, "symfony/dotenv": { - "version": "v4.4.16" + "version": "v4.4.20" }, "symfony/error-handler": { - "version": "v4.4.16" + "version": "v4.4.20" }, "symfony/event-dispatcher": { - "version": "v4.4.16" + "version": "v4.4.20" }, "symfony/event-dispatcher-contracts": { "version": "v1.1.9" }, "symfony/expression-language": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/filesystem": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/finder": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/flex": { "version": "1.0", @@ -825,7 +781,7 @@ ] }, "symfony/form": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/framework-bundle": { "version": "4.4", @@ -852,16 +808,13 @@ "version": "v2.3.1" }, "symfony/http-foundation": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/http-kernel": { - "version": "v4.4.16" - }, - "symfony/inflector": { - "version": "v5.1.8" + "version": "v4.4.20" }, "symfony/intl": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/messenger": { "version": "4.3", @@ -869,17 +822,17 @@ "repo": "github.com/symfony/recipes", "branch": "master", "version": "4.3", - "ref": "8a2675c061737658bed85102e9241c752620e575" + "ref": "e9a414b113ceadbf4e52abe37bf8f1b443f06ccb" }, "files": [ "config/packages/messenger.yaml" ] }, "symfony/mime": { - "version": "v5.1.8" + "version": "v5.2.4" }, "symfony/monolog-bridge": { - "version": "v5.1.8" + "version": "v5.2.4" }, "symfony/monolog-bundle": { "version": "3.3", @@ -897,25 +850,25 @@ ] }, "symfony/options-resolver": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/polyfill-ctype": { - "version": "v1.20.0" + "version": "v1.22.1" }, "symfony/polyfill-iconv": { - "version": "v1.20.0" + "version": "v1.22.1" }, "symfony/polyfill-intl-grapheme": { - "version": "v1.20.0" + "version": "v1.22.1" }, "symfony/polyfill-intl-icu": { - "version": "v1.20.0" + "version": "v1.22.1" }, "symfony/polyfill-intl-idn": { - "version": "v1.20.0" + "version": "v1.22.1" }, "symfony/polyfill-intl-normalizer": { - "version": "v1.20.0" + "version": "v1.22.1" }, "symfony/polyfill-mbstring": { "version": "v1.20.0" @@ -927,33 +880,36 @@ "version": "v1.20.0" }, "symfony/polyfill-php72": { - "version": "v1.20.0" + "version": "v1.22.1" }, "symfony/polyfill-php73": { - "version": "v1.20.0" + "version": "v1.22.1" }, "symfony/polyfill-php80": { - "version": "v1.20.0" + "version": "v1.22.1" }, "symfony/process": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/property-access": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/property-info": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/proxy-manager-bridge": { - "version": "v4.4.16" + "version": "v5.2.4" + }, + "symfony/redis-messenger": { + "version": "v5.2.4" }, "symfony/routing": { - "version": "4.2", + "version": "5.1", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "4.2", - "ref": "683dcb08707ba8d41b7e34adb0344bfd68d248a7" + "version": "5.1", + "ref": "b4f3e7c95e38b606eef467e8a42a8408fc460c43" }, "files": [ "config/packages/prod/routing.yaml", @@ -974,28 +930,28 @@ ] }, "symfony/security-core": { - "version": "v4.4.16" + "version": "v4.4.20" }, "symfony/security-csrf": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/security-guard": { - "version": "v4.4.16" + "version": "v4.4.20" }, "symfony/security-http": { - "version": "v4.4.16" + "version": "v4.4.20" }, "symfony/serializer": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/service-contracts": { "version": "v2.2.0" }, "symfony/stopwatch": { - "version": "v5.1.8" + "version": "v5.2.4" }, "symfony/string": { - "version": "v5.1.8" + "version": "v5.2.4" }, "symfony/swiftmailer-bundle": { "version": "2.5", @@ -1012,10 +968,7 @@ ] }, "symfony/templating": { - "version": "v4.4.16" - }, - "symfony/thanks": { - "version": "v1.2.10" + "version": "v5.2.4" }, "symfony/translation": { "version": "3.3", @@ -1031,10 +984,10 @@ ] }, "symfony/translation-contracts": { - "version": "v1.1.10" + "version": "v2.3.0" }, "symfony/twig-bridge": { - "version": "v4.4.16" + "version": "v4.4.20" }, "symfony/twig-bundle": { "version": "4.4", @@ -1064,13 +1017,13 @@ ] }, "symfony/var-dumper": { - "version": "v5.1.8" + "version": "v5.2.4" }, "symfony/var-exporter": { - "version": "v5.1.8" + "version": "v5.2.4" }, "symfony/web-link": { - "version": "v5.1.8" + "version": "v5.2.4" }, "symfony/web-profiler-bundle": { "version": "3.3", @@ -1087,7 +1040,7 @@ ] }, "symfony/yaml": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symplify/auto-bind-parameter": { "version": "8.3.16" @@ -1123,7 +1076,7 @@ "version": "8.3.48" }, "textalk/websocket": { - "version": "1.4.1" + "version": "1.5.2" }, "theofidry/alice-data-fixtures": { "version": "1.0", @@ -1138,58 +1091,46 @@ "version": "1.2.0" }, "twig/intl-extra": { - "version": "v2.14.1" + "version": "v2.14.3" }, "twig/twig": { - "version": "v2.14.1" + "version": "v2.14.4" }, "vimeo/psalm": { "version": "3.18.2" }, - "webimpress/safe-writer": { - "version": "2.1.0" - }, "webmozart/assert": { "version": "1.9.1" }, "webmozart/glob": { - "version": "4.1.0" + "version": "4.3.0" }, "webmozart/path-util": { "version": "2.3.0" }, - "white-october/pagerfanta-bundle": { - "version": "v1.3.2" - }, "willdurand/hateoas": { - "version": "2.12.0" + "version": "3.7.0" }, "willdurand/hateoas-bundle": { - "version": "1.4", + "version": "2.0", "recipe": { "repo": "github.com/symfony/recipes-contrib", "branch": "master", - "version": "1.4", + "version": "2.0", "ref": "34df072c6edaa61ae19afb2f3a239f272fecab87" - }, - "files": [ - "config/packages/bazinga_hateoas.yaml" - ] + } }, "willdurand/jsonp-callback-validator": { "version": "v1.1.0" }, "willdurand/negotiation": { - "version": "v2.3.1" + "version": "3.0.0" }, "winzou/state-machine": { - "version": "0.3.3" + "version": "0.4.1" }, "winzou/state-machine-bundle": { - "version": "0.3.2" - }, - "zendframework/zend-hydrator": { - "version": "2.4.2" + "version": "0.5.0" }, "zendframework/zend-stdlib": { "version": "3.2.1" From 207af701d7a1db13d53c682df4cfa9daded4c513 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 18:26:29 +0100 Subject: [PATCH 09/31] Use composer v2 --- .github/workflows/recipe.yaml | 8 ++++---- .github/workflows/security.yaml | 8 ++++---- .github/workflows/tests.yaml | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/recipe.yaml b/.github/workflows/recipe.yaml index 63d5a66..63e64ed 100644 --- a/.github/workflows/recipe.yaml +++ b/.github/workflows/recipe.yaml @@ -44,14 +44,14 @@ jobs: id: cache-composer with: path: /home/runner/.composer/cache - key: composer-php:${{ matrix.php }}-${{ github.sha }} - restore-keys: composer-php:${{ matrix.php }}- + key: composer2-php:${{ matrix.php }}-${{ github.sha }} + restore-keys: composer2-php:${{ matrix.php }}- - run: mkdir -p /home/runner/.composer/cache if: steps.cache-composer.outputs.cache-hit != 'true' - - name: Composer v1 - run: sudo composer self-update --1 + - name: Composer v2 + run: sudo composer self-update --2 - name: Composer Github Auth run: composer config -g github-oauth.github.com ${{ github.token }} diff --git a/.github/workflows/security.yaml b/.github/workflows/security.yaml index 702fd3d..fcd0fff 100644 --- a/.github/workflows/security.yaml +++ b/.github/workflows/security.yaml @@ -30,14 +30,14 @@ jobs: id: cache-composer with: path: /home/runner/.composer/cache - key: composer-php:${{ matrix.php }}-${{ github.sha }} - restore-keys: composer-php:${{ matrix.php }}- + key: composer2-php:${{ matrix.php }}-${{ github.sha }} + restore-keys: composer2-php:${{ matrix.php }}- - run: mkdir -p /home/runner/.composer/cache if: steps.cache-composer.outputs.cache-hit != 'true' - - name: Composer v1 - run: sudo composer self-update --1 + - name: Composer v2 + run: sudo composer self-update --2 - name: Composer Github Auth run: composer config -g github-oauth.github.com ${{ github.token }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 94755ff..e19d77c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -41,14 +41,14 @@ jobs: id: cache-composer with: path: /home/runner/.composer/cache - key: composer-php:${{ matrix.php }}-${{ github.sha }} - restore-keys: composer-php:${{ matrix.php }}- + key: composer2-php:${{ matrix.php }}-${{ github.sha }} + restore-keys: composer2-php:${{ matrix.php }}- - run: mkdir -p /home/runner/.composer/cache if: steps.cache-composer.outputs.cache-hit != 'true' - - name: Composer v1 - run: sudo composer self-update --1 + - name: Composer v2 + run: sudo composer self-update --2 - name: Composer Github Auth run: composer config -g github-oauth.github.com ${{ github.token }} From ee9e05534365fdc4b3208100f9666dcc1a39a791 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 18:36:18 +0100 Subject: [PATCH 10/31] Correct tests --- src/Controller/Admin/Page/PageSlugController.php | 2 +- tests/Application/src/Kernel.php | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/Controller/Admin/Page/PageSlugController.php b/src/Controller/Admin/Page/PageSlugController.php index 9b610d6..827533a 100644 --- a/src/Controller/Admin/Page/PageSlugController.php +++ b/src/Controller/Admin/Page/PageSlugController.php @@ -41,7 +41,7 @@ public function __construct(SlugGeneratorInterface $slugGenerator) */ public function generateAction(Request $request): JsonResponse { - $name = $request->query->get('title'); + $name = (string) $request->query->get('title'); return new JsonResponse([ 'slug' => $this->slugGenerator->generate($name), diff --git a/tests/Application/src/Kernel.php b/tests/Application/src/Kernel.php index a290b22..911cdf3 100644 --- a/tests/Application/src/Kernel.php +++ b/tests/Application/src/Kernel.php @@ -15,23 +15,11 @@ use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; -use Symfony\Component\Config\Loader\DelegatingLoader; use Symfony\Component\Config\Loader\LoaderInterface; -use Symfony\Component\Config\Loader\LoaderResolver; use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\ContainerInterface; -use Symfony\Component\DependencyInjection\Loader\ClosureLoader; -use Symfony\Component\DependencyInjection\Loader\DirectoryLoader; -use Symfony\Component\DependencyInjection\Loader\GlobFileLoader; -use Symfony\Component\DependencyInjection\Loader\IniFileLoader; -use Symfony\Component\DependencyInjection\Loader\PhpFileLoader; -use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; -use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; -use Symfony\Component\HttpKernel\Config\FileLocator; use Symfony\Component\HttpKernel\Kernel as BaseKernel; use Symfony\Component\Routing\RouteCollectionBuilder; -use Webmozart\Assert\Assert; /** @final */ class Kernel extends BaseKernel From fcf8467b3bdc51409c3514fb0ae2b3922372022a Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 18:45:52 +0100 Subject: [PATCH 11/31] Don't check lint twig on prod mode --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b369333..e2ca4fb 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ test.schema: ## Validate MySQL Schema ${CONSOLE} doctrine:schema:validate test.twig: ## Validate Twig templates - ${CONSOLE} lint:twig -e prod --no-debug ../../src/Resources/views/ + ${CONSOLE} lint:twig --no-debug ../../src/Resources/views/ ### ### SYLIUS From 9d6e7e006ad320dfe6b65c827e6e7dfb69339469 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 18:56:53 +0100 Subject: [PATCH 12/31] Update doctrine commands for migrations in Makefile --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e2ca4fb..8ef8f1b 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ SYMFONY=cd ${APP_DIR} && symfony COMPOSER=symfony composer CONSOLE=${SYMFONY} console export COMPOSE_PROJECT_NAME=cms-page +DOCTRINE_NAMESPACE=MonsieurBiz\SyliusCmsPagePlugin\Migrations COMPOSE=docker-compose YARN=yarn PHPUNIT=symfony php vendor/bin/phpunit @@ -107,7 +108,7 @@ sylius: dependencies sylius.database sylius.fixtures sylius.assets ## Install Sy sylius.database: ## Setup the database ${CONSOLE} doctrine:database:drop --if-exists --force ${CONSOLE} doctrine:database:create --if-not-exists - ${CONSOLE} doctrine:schema:update --force + ${CONSOLE} doctrine:migration:migrate -n sylius.fixtures: ## Run the fixtures ${CONSOLE} sylius:fixtures:load -n default @@ -117,6 +118,12 @@ sylius.assets: ## Install all assets with symlinks ${CONSOLE} sylius:install:assets ${CONSOLE} sylius:theme:assets:install --symlink +doctrine.diff: ## Make doctrine diff + ${CONSOLE} doctrine:migration:diff --namespace="${DOCTRINE_NAMESPACE}" + +doctrine.migrate: ## Make doctrine migrate + ${CONSOLE} doctrine:migration:migrate + ### ### PLATFORM ### ¯¯¯¯¯¯¯¯ From e14e18b3479f2d62bca5febeabbcf12322e1e875 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Wed, 10 Mar 2021 19:06:35 +0100 Subject: [PATCH 13/31] Add dev dotenv config --- tests/Application/.env.dev | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/Application/.env.dev diff --git a/tests/Application/.env.dev b/tests/Application/.env.dev new file mode 100644 index 0000000..4bf7964 --- /dev/null +++ b/tests/Application/.env.dev @@ -0,0 +1,20 @@ +# This file is a "template" of which env vars needs to be defined in your configuration or in an .env file +# Set variables here that may be different on each deployment target of the app, e.g. development, staging, production. +# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration + +COMPOSE_PROJECT_NAME=cms-page + +###> doctrine/doctrine-bundle ### +# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url +# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db" +# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls +# If you use Symfony binary this URL is overridden by it +DATABASE_URL=mysql://root@127.0.0.1/sylius?serverVersion=mariadb-10.5.5 +###< doctrine/doctrine-bundle ### + +###> symfony/swiftmailer-bundle ### +# For Gmail as a transport, use: "gmail://username:password@localhost" +# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" +# Delivery is disabled by default via "null://localhost" +MAILER_URL=smtp://localhost:1025 +###< symfony/swiftmailer-bundle ### From 9f990c5bdde9cfe83213a2d5e348ab8502c67c30 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 11 Mar 2021 10:35:13 +0100 Subject: [PATCH 14/31] Add doctrine migration path --- src/Resources/config/app/doctrine_migrations.yaml | 3 +++ src/Resources/config/config.yaml | 1 + 2 files changed, 4 insertions(+) create mode 100644 src/Resources/config/app/doctrine_migrations.yaml diff --git a/src/Resources/config/app/doctrine_migrations.yaml b/src/Resources/config/app/doctrine_migrations.yaml new file mode 100644 index 0000000..3d4dd12 --- /dev/null +++ b/src/Resources/config/app/doctrine_migrations.yaml @@ -0,0 +1,3 @@ +doctrine_migrations: + migrations_paths: + 'MonsieurBiz\SyliusCmsPagePlugin\Migrations': "@MonsieurBizSyliusCmsPagePlugin/Migrations" diff --git a/src/Resources/config/config.yaml b/src/Resources/config/config.yaml index 8bb2eda..a8ae9f6 100644 --- a/src/Resources/config/config.yaml +++ b/src/Resources/config/config.yaml @@ -1,4 +1,5 @@ imports: + - { resource: 'app/doctrine_migrations.yaml' } - { resource: "sylius/resources.yaml" } - { resource: "sylius/grid.yaml" } - { resource: "sylius/fixtures.yaml" } From 969da35934ae9095c9f4d82092dd36c8d7783128 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 11 Mar 2021 11:13:58 +0100 Subject: [PATCH 15/31] Add plugin migrations --- src/Migrations/Version20210311101300.php | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/Migrations/Version20210311101300.php diff --git a/src/Migrations/Version20210311101300.php b/src/Migrations/Version20210311101300.php new file mode 100644 index 0000000..1b85c5d --- /dev/null +++ b/src/Migrations/Version20210311101300.php @@ -0,0 +1,49 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace MonsieurBiz\SyliusCmsPagePlugin\Migrations; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; + +/** + * Auto-generated Migration: Please modify to your needs! + */ +final class Version20210311101300 extends AbstractMigration +{ + public function getDescription(): string + { + return ''; + } + + public function up(Schema $schema): void + { + // this up() migration is auto-generated, please modify it to your needs + $this->addSql('CREATE TABLE monsieurbiz_cms_page (id INT AUTO_INCREMENT NOT NULL, code VARCHAR(255) NOT NULL, enabled TINYINT(1) DEFAULT \'1\' NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE monsieurbiz_cms_page_channels (page_id INT NOT NULL, channel_id INT NOT NULL, INDEX IDX_C7095B0AC4663E4 (page_id), INDEX IDX_C7095B0A72F5A1AA (channel_id), PRIMARY KEY(page_id, channel_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE monsieurbiz_cms_page_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT NOT NULL, title VARCHAR(255) DEFAULT NULL, content LONGTEXT DEFAULT NULL, slug VARCHAR(255) DEFAULT NULL, metaTitle VARCHAR(255) DEFAULT NULL, metaKeywords VARCHAR(255) DEFAULT NULL, metaDescription LONGTEXT DEFAULT NULL, locale VARCHAR(255) NOT NULL, INDEX IDX_2E2C3B072C2AC5D3 (translatable_id), UNIQUE INDEX monsieurbiz_cms_page_translation_uniq_trans (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('ALTER TABLE monsieurbiz_cms_page_channels ADD CONSTRAINT FK_C7095B0AC4663E4 FOREIGN KEY (page_id) REFERENCES monsieurbiz_cms_page (id)'); + $this->addSql('ALTER TABLE monsieurbiz_cms_page_channels ADD CONSTRAINT FK_C7095B0A72F5A1AA FOREIGN KEY (channel_id) REFERENCES sylius_channel (id)'); + $this->addSql('ALTER TABLE monsieurbiz_cms_page_translation ADD CONSTRAINT FK_2E2C3B072C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES monsieurbiz_cms_page (id) ON DELETE CASCADE'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE monsieurbiz_cms_page_channels DROP FOREIGN KEY FK_C7095B0AC4663E4'); + $this->addSql('ALTER TABLE monsieurbiz_cms_page_translation DROP FOREIGN KEY FK_2E2C3B072C2AC5D3'); + $this->addSql('DROP TABLE monsieurbiz_cms_page'); + $this->addSql('DROP TABLE monsieurbiz_cms_page_channels'); + $this->addSql('DROP TABLE monsieurbiz_cms_page_translation'); + } +} From 38fe4969d0c18c973d0bd57ca47c70e66c7f8fed Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 11 Mar 2021 11:14:28 +0100 Subject: [PATCH 16/31] Add config-dir in composer.json --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b4166c0..2ed862e 100644 --- a/composer.json +++ b/composer.json @@ -63,7 +63,8 @@ "extra": { "branch-alias": { "dev-master": "1.0-dev" - } + }, + "config-dir": "./tests/Application/config/" }, "scripts": { "auto-scripts": { From 3895e9ff9ed9ea26f278723e88cc20ab5ed405da Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 11 Mar 2021 11:50:13 +0100 Subject: [PATCH 17/31] Ignore migrations in PHPMD --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2ed862e..374ddc0 100644 --- a/composer.json +++ b/composer.json @@ -73,6 +73,6 @@ }, "phpcs": "php-cs-fixer fix --using-cache=false", "phpstan": "phpstan analyse -c phpstan.neon src/", - "phpmd": "phpmd src/ ansi phpmd.xml" + "phpmd": "phpmd --exclude Migrations/* src/ ansi phpmd.xml" } } From 709f21cdedb1f4e83b6412f1d243173debf1b95e Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 11 Mar 2021 13:53:58 +0100 Subject: [PATCH 18/31] Require oauth-server-bundle in dev only --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 374ddc0..bf262b6 100644 --- a/composer.json +++ b/composer.json @@ -8,8 +8,7 @@ "php": "~7.4", "sylius/sylius": "^1.8", "gedmo/doctrine-extensions": "^2.4.12 || ^3.0", - "monsieurbiz/sylius-rich-editor-plugin": "^2.0@RC", - "friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev" + "monsieurbiz/sylius-rich-editor-plugin": "^2.0@RC" }, "require-dev": { "behat/behat": "^3.6.1", @@ -45,7 +44,8 @@ "symfony/flex": "^1.7", "symfony/web-profiler-bundle": "^4.4", "phpmd/phpmd": "@stable", - "phpstan/phpstan-webmozart-assert": "^0.12.7" + "phpstan/phpstan-webmozart-assert": "^0.12.7", + "friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev" }, "prefer-stable": true, "autoload": { From efb94694c19643a8d66c4d185d959dfb435e0372 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 11 Mar 2021 12:06:05 +0100 Subject: [PATCH 19/31] Test recipes matrix --- .github/workflows/recipe.yaml | 3 ++- .github/workflows/tests.yaml | 3 ++- composer.json | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/recipe.yaml b/.github/workflows/recipe.yaml index 63e64ed..7c5dcf9 100644 --- a/.github/workflows/recipe.yaml +++ b/.github/workflows/recipe.yaml @@ -20,6 +20,7 @@ jobs: fail-fast: false matrix: php: [7.4] + sylius: [~1.8.0, ~1.9.0] steps: - name: Setup PHP @@ -58,7 +59,7 @@ jobs: - name: Install Sylius-Standard run: | - composer create-project --prefer-dist --no-scripts --no-progress sylius/sylius-standard sylius + composer create-project --prefer-dist --no-scripts --no-progress sylius/sylius-standard sylius "${{ matrix.sylius }}" - name: Setup some requirements working-directory: ./sylius diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e19d77c..875f415 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -69,6 +69,7 @@ jobs: - run: make test.twig - - run: make test.schema + # See https://github.com/Sylius/Sylius/pull/12413 + # - run: make test.schema #- run: make test.container diff --git a/composer.json b/composer.json index bf262b6..ebb489e 100644 --- a/composer.json +++ b/composer.json @@ -40,9 +40,9 @@ "sylius-labs/coding-standard": "^3.1", "symfony/browser-kit": "^4.4", "symfony/debug-bundle": "^4.4", - "symfony/dotenv": "^4.4", + "symfony/dotenv": "^4.4 || ^5.2", "symfony/flex": "^1.7", - "symfony/web-profiler-bundle": "^4.4", + "symfony/web-profiler-bundle": "^4.4 || ^5.2", "phpmd/phpmd": "@stable", "phpstan/phpstan-webmozart-assert": "^0.12.7", "friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev" From 58205d3f0f5d9700f312a40c33b65845134dfc0f Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:03:51 +0100 Subject: [PATCH 20/31] Use autowiring for fixtures --- src/Fixture/Factory/PageFixtureFactory.php | 3 +-- .../Factory/PageFixtureFactoryInterface.php | 20 +++++++++++++++++++ src/Fixture/PageFixture.php | 7 +++++++ src/Resources/config/services.yaml | 6 ------ 4 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 src/Fixture/Factory/PageFixtureFactoryInterface.php diff --git a/src/Fixture/Factory/PageFixtureFactory.php b/src/Fixture/Factory/PageFixtureFactory.php index 27688d4..d1f982e 100644 --- a/src/Fixture/Factory/PageFixtureFactory.php +++ b/src/Fixture/Factory/PageFixtureFactory.php @@ -16,7 +16,6 @@ use MonsieurBiz\SyliusCmsPagePlugin\Entity\PageInterface; use MonsieurBiz\SyliusCmsPagePlugin\Entity\PageTranslationInterface; use Sylius\Bundle\CoreBundle\Fixture\Factory\AbstractExampleFactory; -use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface; use Sylius\Bundle\CoreBundle\Fixture\OptionsResolver\LazyOption; use Sylius\Component\Channel\Repository\ChannelRepositoryInterface; use Sylius\Component\Locale\Model\LocaleInterface; @@ -26,7 +25,7 @@ use Symfony\Component\OptionsResolver\Options; use Symfony\Component\OptionsResolver\OptionsResolver; -class PageFixtureFactory extends AbstractExampleFactory implements ExampleFactoryInterface +class PageFixtureFactory extends AbstractExampleFactory implements PageFixtureFactoryInterface { /** * @var FactoryInterface diff --git a/src/Fixture/Factory/PageFixtureFactoryInterface.php b/src/Fixture/Factory/PageFixtureFactoryInterface.php new file mode 100644 index 0000000..7b23683 --- /dev/null +++ b/src/Fixture/Factory/PageFixtureFactoryInterface.php @@ -0,0 +1,20 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +namespace MonsieurBiz\SyliusCmsPagePlugin\Fixture\Factory; + +use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface; + +interface PageFixtureFactoryInterface extends ExampleFactoryInterface +{ +} diff --git a/src/Fixture/PageFixture.php b/src/Fixture/PageFixture.php index 38a21b2..9dea5e6 100644 --- a/src/Fixture/PageFixture.php +++ b/src/Fixture/PageFixture.php @@ -13,11 +13,18 @@ namespace MonsieurBiz\SyliusCmsPagePlugin\Fixture; +use Doctrine\ORM\EntityManagerInterface; +use MonsieurBiz\SyliusCmsPagePlugin\Fixture\Factory\PageFixtureFactoryInterface; use Sylius\Bundle\CoreBundle\Fixture\AbstractResourceFixture; use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; class PageFixture extends AbstractResourceFixture { + public function __construct(EntityManagerInterface $pageManager, PageFixtureFactoryInterface $exampleFactory) + { + parent::__construct($pageManager, $exampleFactory); + } + /** * {@inheritdoc} */ diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index a49bc98..c098f43 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -26,12 +26,6 @@ services: $dataClass: '%monsieurbiz_cms_page.model.page_translation.class%' $validationGroups: ['monsieurbiz'] - # Fixtures - MonsieurBiz\SyliusCmsPagePlugin\Fixture\PageFixture: - arguments: - $objectManager: '@doctrine.orm.default_entity_manager' - $exampleFactory: '@MonsieurBiz\SyliusCmsPagePlugin\Fixture\Factory\PageFixtureFactory' - # Routing Context MonsieurBiz\SyliusCmsPagePlugin\Routing\RequestContext: decorates: router.request_context From 292a7b41515932c0de4560c633a9a262c0728aa5 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:36:51 +0100 Subject: [PATCH 21/31] Remove test application translation symlink --- tests/Application/translations | 1 - 1 file changed, 1 deletion(-) delete mode 120000 tests/Application/translations diff --git a/tests/Application/translations b/tests/Application/translations deleted file mode 120000 index 3993c39..0000000 --- a/tests/Application/translations +++ /dev/null @@ -1 +0,0 @@ -../../vendor/sylius/sylius/translations \ No newline at end of file From 45e8855a43c4c1e68290de455d2272361b23d7e9 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:37:21 +0100 Subject: [PATCH 22/31] Add translations folder --- tests/Application/translations/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/Application/translations/.gitignore diff --git a/tests/Application/translations/.gitignore b/tests/Application/translations/.gitignore new file mode 100644 index 0000000..e69de29 From ec17a4751e7d34cad3589920a3806af767b8d8b7 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:42:47 +0100 Subject: [PATCH 23/31] Remove doctrine.migrate from Makefile --- Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Makefile b/Makefile index 8ef8f1b..507ebf1 100644 --- a/Makefile +++ b/Makefile @@ -121,9 +121,6 @@ sylius.assets: ## Install all assets with symlinks doctrine.diff: ## Make doctrine diff ${CONSOLE} doctrine:migration:diff --namespace="${DOCTRINE_NAMESPACE}" -doctrine.migrate: ## Make doctrine migrate - ${CONSOLE} doctrine:migration:migrate - ### ### PLATFORM ### ¯¯¯¯¯¯¯¯ From 2294006904b6776c9911ba91af1d75d2e26eedd9 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:43:12 +0100 Subject: [PATCH 24/31] Update recipe github action to manage matrix cache --- .github/workflows/recipe.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/recipe.yaml b/.github/workflows/recipe.yaml index 7c5dcf9..2d9dd11 100644 --- a/.github/workflows/recipe.yaml +++ b/.github/workflows/recipe.yaml @@ -20,7 +20,7 @@ jobs: fail-fast: false matrix: php: [7.4] - sylius: [~1.8.0, ~1.9.0] + sylius: [1.8, 1.9] steps: - name: Setup PHP @@ -45,8 +45,8 @@ jobs: id: cache-composer with: path: /home/runner/.composer/cache - key: composer2-php:${{ matrix.php }}-${{ github.sha }} - restore-keys: composer2-php:${{ matrix.php }}- + key: composer2-php:${{ matrix.php }}-${{ matrix.sylius }}-${{ github.sha }} + restore-keys: composer2-php:${{ matrix.php }}-${{ matrix.sylius }}- - run: mkdir -p /home/runner/.composer/cache if: steps.cache-composer.outputs.cache-hit != 'true' @@ -59,7 +59,7 @@ jobs: - name: Install Sylius-Standard run: | - composer create-project --prefer-dist --no-scripts --no-progress sylius/sylius-standard sylius "${{ matrix.sylius }}" + composer create-project --prefer-dist --no-scripts --no-progress sylius/sylius-standard sylius "~${{ matrix.sylius }}.0" - name: Setup some requirements working-directory: ./sylius From 8d6f44ff0e7092d20e88293f5c61fd219f2c1ceb Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:43:30 +0100 Subject: [PATCH 25/31] Update test github action to continue on error for test.schema --- .github/workflows/tests.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 875f415..1e906f1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -69,7 +69,6 @@ jobs: - run: make test.twig - # See https://github.com/Sylius/Sylius/pull/12413 - # - run: make test.schema - + - run: make test.schema + continue-on-error: true # See https://github.com/Sylius/Sylius/pull/12413 #- run: make test.container From a888c4bff33f0c4180638ea3094ff06ede9fcf3e Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:43:59 +0100 Subject: [PATCH 26/31] PHP doc on PageFixture construct --- src/Fixture/PageFixture.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Fixture/PageFixture.php b/src/Fixture/PageFixture.php index 9dea5e6..e8e4bd0 100644 --- a/src/Fixture/PageFixture.php +++ b/src/Fixture/PageFixture.php @@ -20,6 +20,10 @@ class PageFixture extends AbstractResourceFixture { + /** + * @param EntityManagerInterface $pageManager + * @param PageFixtureFactoryInterface $exampleFactory + */ public function __construct(EntityManagerInterface $pageManager, PageFixtureFactoryInterface $exampleFactory) { parent::__construct($pageManager, $exampleFactory); From 8a2f9d3b500b58660e006ff401f141526dfffe78 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:44:42 +0100 Subject: [PATCH 27/31] Remove .env.dev --- tests/Application/.env.dev | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 tests/Application/.env.dev diff --git a/tests/Application/.env.dev b/tests/Application/.env.dev deleted file mode 100644 index 4bf7964..0000000 --- a/tests/Application/.env.dev +++ /dev/null @@ -1,20 +0,0 @@ -# This file is a "template" of which env vars needs to be defined in your configuration or in an .env file -# Set variables here that may be different on each deployment target of the app, e.g. development, staging, production. -# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration - -COMPOSE_PROJECT_NAME=cms-page - -###> doctrine/doctrine-bundle ### -# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url -# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db" -# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls -# If you use Symfony binary this URL is overridden by it -DATABASE_URL=mysql://root@127.0.0.1/sylius?serverVersion=mariadb-10.5.5 -###< doctrine/doctrine-bundle ### - -###> symfony/swiftmailer-bundle ### -# For Gmail as a transport, use: "gmail://username:password@localhost" -# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" -# Delivery is disabled by default via "null://localhost" -MAILER_URL=smtp://localhost:1025 -###< symfony/swiftmailer-bundle ### From ee6ad3b1c5cc17357db854632b04ab9849d6cac1 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:44:58 +0100 Subject: [PATCH 28/31] Remove symfony.lock symlink --- tests/Application/symfony.lock | 1 - 1 file changed, 1 deletion(-) delete mode 120000 tests/Application/symfony.lock diff --git a/tests/Application/symfony.lock b/tests/Application/symfony.lock deleted file mode 120000 index 17161cb..0000000 --- a/tests/Application/symfony.lock +++ /dev/null @@ -1 +0,0 @@ -../../vendor/sylius/sylius/symfony.lock \ No newline at end of file From 393245f32e358b95ce25b38821ed3b75da892ddf Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:45:59 +0100 Subject: [PATCH 29/31] Add test application symfony.lock --- tests/Application/symfony.lock | 1117 ++++++++++++++++++++++++++++++++ 1 file changed, 1117 insertions(+) create mode 100644 tests/Application/symfony.lock diff --git a/tests/Application/symfony.lock b/tests/Application/symfony.lock new file mode 100644 index 0000000..b5e0a32 --- /dev/null +++ b/tests/Application/symfony.lock @@ -0,0 +1,1117 @@ +{ + "aeon-php/calendar": { + "version": "0.15.0" + }, + "amphp/amp": { + "version": "v2.5.0" + }, + "amphp/byte-stream": { + "version": "v1.8.0" + }, + "api-platform/core": { + "version": "2.5", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "2.5", + "ref": "a93061567140e386f107be75340ac2aee3f86cbf" + }, + "files": [ + "config/packages/api_platform.yaml", + "config/routes/api_platform.yaml", + "src/Entity/.gitignore" + ] + }, + "babdev/pagerfanta-bundle": { + "version": "v2.8.0" + }, + "behat/behat": { + "version": "v3.7.0" + }, + "behat/gherkin": { + "version": "v4.6.2" + }, + "behat/mink-selenium2-driver": { + "version": "v1.4.0" + }, + "behat/transliterator": { + "version": "v1.3.0" + }, + "clue/stream-filter": { + "version": "v1.4.1" + }, + "coduo/php-matcher": { + "version": "4.0.0" + }, + "coduo/php-to-string": { + "version": "3.0.0" + }, + "composer/package-versions-deprecated": { + "version": "1.11.99.1" + }, + "composer/semver": { + "version": "1.5.1" + }, + "composer/xdebug-handler": { + "version": "1.4.3" + }, + "dealerdirect/phpcodesniffer-composer-installer": { + "version": "v0.7.0" + }, + "dmore/behat-chrome-extension": { + "version": "1.3.0" + }, + "dmore/chrome-mink-driver": { + "version": "2.7.0" + }, + "dnoegel/php-xdg-base-dir": { + "version": "v0.1.1" + }, + "doctrine/annotations": { + "version": "1.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "1.0", + "ref": "a2759dd6123694c8d901d0ec80006e044c2e6457" + }, + "files": [ + "config/routes/annotations.yaml" + ] + }, + "doctrine/cache": { + "version": "1.10.2" + }, + "doctrine/collections": { + "version": "1.6.7" + }, + "doctrine/common": { + "version": "2.13.3" + }, + "doctrine/data-fixtures": { + "version": "1.4.4" + }, + "doctrine/dbal": { + "version": "2.10.3" + }, + "doctrine/doctrine-bundle": { + "version": "1.12", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "1.12", + "ref": "b11d5292f574a9cd092d506c899d05c79cf4d613" + }, + "files": [ + "config/packages/doctrine.yaml", + "config/packages/prod/doctrine.yaml", + "src/Entity/.gitignore", + "src/Repository/.gitignore" + ] + }, + "doctrine/doctrine-migrations-bundle": { + "version": "2.2", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "2.2", + "ref": "baaa439e3e3179e69e3da84b671f0a3e4a2f56ad" + }, + "files": [ + "config/packages/doctrine_migrations.yaml", + "migrations/.gitignore" + ] + }, + "doctrine/event-manager": { + "version": "1.1.1" + }, + "doctrine/inflector": { + "version": "1.3.1" + }, + "doctrine/instantiator": { + "version": "1.3.1" + }, + "doctrine/lexer": { + "version": "1.2.1" + }, + "doctrine/migrations": { + "version": "3.0.1" + }, + "doctrine/orm": { + "version": "v2.7.3" + }, + "doctrine/persistence": { + "version": "1.3.8" + }, + "doctrine/sql-formatter": { + "version": "1.1.1" + }, + "egulias/email-validator": { + "version": "2.1.19" + }, + "fakerphp/faker": { + "version": "v1.12.0" + }, + "felixfbecker/advanced-json-rpc": { + "version": "v3.1.1" + }, + "felixfbecker/language-server-protocol": { + "version": "v1.4.0" + }, + "fig/link-util": { + "version": "1.1.0" + }, + "friends-of-behat/mink": { + "version": "v1.8.0" + }, + "friends-of-behat/mink-browserkit-driver": { + "version": "v1.4.0" + }, + "friends-of-behat/mink-debug-extension": { + "version": "v2.0.0" + }, + "friends-of-behat/mink-extension": { + "version": "v2.4.0" + }, + "friends-of-behat/page-object-extension": { + "version": "v0.3.1" + }, + "friends-of-behat/symfony-extension": { + "version": "2.0", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "2.0", + "ref": "3d21344765fd3440a85bdd27d4cada186ec628bd" + } + }, + "friends-of-behat/variadic-extension": { + "version": "v1.3.0" + }, + "friendsofphp/php-cs-fixer": { + "version": "2.2", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "2.2", + "ref": "cc05ab6abf6894bddb9bbd6a252459010ebe040b" + }, + "files": [ + ".php_cs.dist" + ] + }, + "friendsofphp/proxy-manager-lts": { + "version": "v1.0.2" + }, + "friendsofsymfony/oauth-server-bundle": { + "version": "1.6.2" + }, + "friendsofsymfony/oauth2-php": { + "version": "1.3.0" + }, + "friendsofsymfony/rest-bundle": { + "version": "2.2", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "2.2", + "ref": "cad41ef93d6150067ae2bb3c7fd729492dff6f0a" + } + }, + "gedmo/doctrine-extensions": { + "version": "v2.4.42" + }, + "guzzlehttp/guzzle": { + "version": "6.5.5" + }, + "guzzlehttp/promises": { + "version": "v1.3.1" + }, + "guzzlehttp/psr7": { + "version": "1.6.1" + }, + "hamcrest/hamcrest-php": { + "version": "v2.0.1" + }, + "hwi/oauth-bundle": { + "version": "0.6", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "0.6", + "ref": "20cacc9b2da49d96ea55c8a8dd31324c5be88bc9" + } + }, + "imagine/imagine": { + "version": "1.2.3" + }, + "instaclick/php-webdriver": { + "version": "1.4.7" + }, + "jean85/pretty-package-versions": { + "version": "1.5.0" + }, + "jms/metadata": { + "version": "1.7.0" + }, + "jms/serializer": { + "version": "1.14.1" + }, + "jms/serializer-bundle": { + "version": "2.0", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "2.0", + "ref": "fe60ce509ef04a3f40da96e3979bc8d9b13b2372" + } + }, + "knplabs/gaufrette": { + "version": "v0.8.3" + }, + "knplabs/knp-gaufrette-bundle": { + "version": "v0.7.1" + }, + "knplabs/knp-menu": { + "version": "v3.1.2" + }, + "knplabs/knp-menu-bundle": { + "version": "v3.0.0" + }, + "laminas/laminas-code": { + "version": "3.5.1" + }, + "laminas/laminas-eventmanager": { + "version": "3.3.0" + }, + "laminas/laminas-zendframework-bridge": { + "version": "1.1.1" + }, + "lchrusciel/api-test-case": { + "version": "v5.0.0" + }, + "lcobucci/clock": { + "version": "2.0.0" + }, + "lcobucci/jwt": { + "version": "3.3.1" + }, + "league/uri": { + "version": "5.3.0" + }, + "league/uri-components": { + "version": "1.8.2" + }, + "league/uri-hostname-parser": { + "version": "1.1.1" + }, + "league/uri-interfaces": { + "version": "1.1.1" + }, + "league/uri-manipulations": { + "version": "1.5.0" + }, + "league/uri-parser": { + "version": "1.4.1" + }, + "league/uri-schemes": { + "version": "1.2.1" + }, + "lexik/jwt-authentication-bundle": { + "version": "2.5", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "2.5", + "ref": "5b2157bcd5778166a5696e42f552ad36529a07a6" + }, + "files": [ + "config/packages/lexik_jwt_authentication.yaml" + ] + }, + "liip/imagine-bundle": { + "version": "1.8", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "1.8", + "ref": "5a5bdc2d0e2533ed6935d5ae562f2b318a8fc1ee" + } + }, + "marcj/topsort": { + "version": "1.1.0" + }, + "matthiasnoback/symfony-config-test": { + "version": "4.2.0" + }, + "matthiasnoback/symfony-dependency-injection-test": { + "version": "4.1.1" + }, + "mikey179/vfsstream": { + "version": "v1.6.8" + }, + "mockery/mockery": { + "version": "1.4.2" + }, + "monolog/monolog": { + "version": "1.25.5" + }, + "myclabs/deep-copy": { + "version": "1.10.1" + }, + "namshi/jose": { + "version": "7.2.3" + }, + "nelmio/alice": { + "version": "3.2", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.2", + "ref": "0b9900ece737bec7752e4155c0164639dd9b0cb0" + }, + "files": [ + "config/packages/dev/nelmio_alice.yaml", + "config/packages/test/nelmio_alice.yaml" + ] + }, + "netresearch/jsonmapper": { + "version": "v2.1.0" + }, + "nette/finder": { + "version": "v2.5.2" + }, + "nette/robot-loader": { + "version": "v3.3.0" + }, + "nette/utils": { + "version": "v3.1.3" + }, + "nikic/php-parser": { + "version": "v4.6.0" + }, + "ocramius/proxy-manager": { + "version": "2.10.1" + }, + "openlss/lib-array2xml": { + "version": "1.0.0" + }, + "pagerfanta/pagerfanta": { + "version": "v2.4.1" + }, + "paragonie/random_compat": { + "version": "v2.0.18" + }, + "payum/iso4217": { + "version": "1.0.1" + }, + "payum/payum": { + "version": "1.6.0" + }, + "payum/payum-bundle": { + "version": "2.4", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "2.4", + "ref": "72ad834a0f4a99175beddb5e2d049136f4a50a67" + } + }, + "phar-io/manifest": { + "version": "1.0.3" + }, + "phar-io/version": { + "version": "2.0.1" + }, + "php": { + "version": "7.3" + }, + "php-cs-fixer/diff": { + "version": "v1.3.0" + }, + "php-http/client-common": { + "version": "1.7.0" + }, + "php-http/discovery": { + "version": "1.4.0" + }, + "php-http/guzzle6-adapter": { + "version": "v1.1.1" + }, + "php-http/httplug": { + "version": "v1.1.0" + }, + "php-http/message": { + "version": "1.7.0" + }, + "php-http/message-factory": { + "version": "v1.0.2" + }, + "php-http/promise": { + "version": "v1.0.0" + }, + "phpdocumentor/reflection-common": { + "version": "1.0.1" + }, + "phpdocumentor/reflection-docblock": { + "version": "4.3.0" + }, + "phpdocumentor/type-resolver": { + "version": "0.4.0" + }, + "phpspec/php-diff": { + "version": "v1.1.0" + }, + "phpspec/phpspec": { + "version": "4.3.1" + }, + "phpspec/prophecy": { + "version": "1.8.0" + }, + "phpstan/phpdoc-parser": { + "version": "0.4.9" + }, + "phpstan/phpstan": { + "version": "0.12.29" + }, + "phpstan/phpstan-doctrine": { + "version": "0.10" + }, + "phpstan/phpstan-shim": { + "version": "0.10.3" + }, + "phpunit/php-code-coverage": { + "version": "5.3.2" + }, + "phpunit/php-file-iterator": { + "version": "1.4.5" + }, + "phpunit/php-text-template": { + "version": "1.2.1" + }, + "phpunit/php-timer": { + "version": "1.0.9" + }, + "phpunit/php-token-stream": { + "version": "2.0.2" + }, + "phpunit/phpunit": { + "version": "4.7", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.7", + "ref": "c276fa48d4713de91eb410289b3b1834acb7e403" + } + }, + "polishsymfonycommunity/symfony-mocker-container": { + "version": "v1.0.2" + }, + "psalm/plugin-mockery": { + "version": "0.3.0" + }, + "psr/cache": { + "version": "1.0.1" + }, + "psr/container": { + "version": "1.0.0" + }, + "psr/event-dispatcher": { + "version": "1.0.0" + }, + "psr/http-client": { + "version": "1.0.1" + }, + "psr/http-factory": { + "version": "1.0.1" + }, + "psr/http-message": { + "version": "1.0.1" + }, + "psr/link": { + "version": "1.0.0" + }, + "psr/log": { + "version": "1.0.2" + }, + "psr/simple-cache": { + "version": "1.0.1" + }, + "ralouphie/getallheaders": { + "version": "3.0.3" + }, + "ramsey/uuid": { + "version": "3.8.0" + }, + "sebastian/code-unit-reverse-lookup": { + "version": "1.0.1" + }, + "sebastian/comparator": { + "version": "2.1.3" + }, + "sebastian/diff": { + "version": "2.0.1" + }, + "sebastian/environment": { + "version": "3.1.0" + }, + "sebastian/exporter": { + "version": "3.1.0" + }, + "sebastian/global-state": { + "version": "2.0.0" + }, + "sebastian/object-enumerator": { + "version": "3.0.3" + }, + "sebastian/object-reflector": { + "version": "1.1.1" + }, + "sebastian/recursion-context": { + "version": "3.0.0" + }, + "sebastian/resource-operations": { + "version": "1.0.0" + }, + "sebastian/type": { + "version": "1.1.3" + }, + "sebastian/version": { + "version": "2.0.1" + }, + "sensiolabs/security-checker": { + "version": "4.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.0", + "ref": "421933bf8f0e75546ac8e00cb3eb12904fa2ac1a" + } + }, + "slevomat/coding-standard": { + "version": "4.6.3" + }, + "sonata-project/block-bundle": { + "version": "3.12.1" + }, + "sonata-project/cache": { + "version": "2.0.1" + }, + "sonata-project/core-bundle": { + "version": "3.9", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "3.9", + "ref": "2f69bd1995730b73a5211a9707622fb25a925df7" + } + }, + "sonata-project/datagrid-bundle": { + "version": "2.3.1" + }, + "sonata-project/doctrine-extensions": { + "version": "1.9.1" + }, + "sonata-project/form-extensions": { + "version": "1.0", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "1.0", + "ref": "8273133183506fe6ec66895e8890227b0dfba1c7" + } + }, + "sonata-project/intl-bundle": { + "version": "2.5.0" + }, + "sonata-project/twig-extensions": { + "version": "1.4.1" + }, + "squizlabs/php_codesniffer": { + "version": "3.3.1" + }, + "sspooky13/yaml-standards": { + "version": "5.0.0" + }, + "stof/doctrine-extensions-bundle": { + "version": "1.2", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "1.2", + "ref": "6c1ceb662f8997085f739cd089bfbef67f245983" + } + }, + "stripe/stripe-php": { + "version": "v4.13.0" + }, + "swiftmailer/swiftmailer": { + "version": "v6.1.2" + }, + "sylius-labs/association-hydrator": { + "version": "v1.1.0" + }, + "sylius-labs/coding-standard": { + "version": "v2.0.0" + }, + "sylius-labs/doctrine-migrations-extra-bundle": { + "version": "v0.1.3" + }, + "sylius-labs/polyfill-symfony-event-dispatcher": { + "version": "v1.0.0" + }, + "sylius-labs/polyfill-symfony-framework-bundle": { + "version": "v1.0.0" + }, + "sylius-labs/polyfill-symfony-security": { + "version": "v1.0.0" + }, + "sylius-labs/sensio-distribution-bundle": { + "version": "v6.0.1" + }, + "sylius/fixtures-bundle": { + "version": "v1.4.1" + }, + "sylius/grid-bundle": { + "version": "v1.7.5" + }, + "sylius/mailer-bundle": { + "version": "v1.5.1" + }, + "sylius/registry": { + "version": "v1.4.0" + }, + "sylius/resource-bundle": { + "version": "v1.6.4" + }, + "sylius/theme-bundle": { + "version": "v1.4.2" + }, + "symfony/amqp-messenger": { + "version": "v5.2.1" + }, + "symfony/asset": { + "version": "v4.1.3" + }, + "symfony/browser-kit": { + "version": "v4.1.3" + }, + "symfony/cache": { + "version": "v4.1.3" + }, + "symfony/cache-contracts": { + "version": "v2.1.3" + }, + "symfony/class-loader": { + "version": "v3.4.14" + }, + "symfony/config": { + "version": "v4.1.3" + }, + "symfony/console": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "e3868d2f4a5104f19f844fe551099a00c6562527" + } + }, + "symfony/css-selector": { + "version": "v4.1.3" + }, + "symfony/debug-bundle": { + "version": "4.1", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.1", + "ref": "f8863cbad2f2e58c4b65fa1eac892ab189971bea" + } + }, + "symfony/dependency-injection": { + "version": "v4.1.3" + }, + "symfony/deprecation-contracts": { + "version": "v2.1.2" + }, + "symfony/doctrine-bridge": { + "version": "v4.1.3" + }, + "symfony/doctrine-messenger": { + "version": "v5.2.1" + }, + "symfony/dom-crawler": { + "version": "v4.1.3" + }, + "symfony/dotenv": { + "version": "v4.1.3" + }, + "symfony/error-handler": { + "version": "v4.4.13" + }, + "symfony/event-dispatcher": { + "version": "v4.1.3" + }, + "symfony/event-dispatcher-contracts": { + "version": "v1.1.9" + }, + "symfony/expression-language": { + "version": "v4.1.3" + }, + "symfony/filesystem": { + "version": "v4.1.3" + }, + "symfony/finder": { + "version": "v4.1.3" + }, + "symfony/flex": { + "version": "1.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "1.0", + "ref": "e921bdbfe20cdefa3b82f379d1cd36df1bc8d115" + } + }, + "symfony/form": { + "version": "v4.1.3" + }, + "symfony/framework-bundle": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "87c585d24de9f43bca80ebcfd5cf5cb39445d95f" + } + }, + "symfony/http-client-contracts": { + "version": "v2.3.1" + }, + "symfony/http-foundation": { + "version": "v4.1.3" + }, + "symfony/http-kernel": { + "version": "v4.1.3" + }, + "symfony/intl": { + "version": "v4.1.3" + }, + "symfony/messenger": { + "version": "4.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.3", + "ref": "8a2675c061737658bed85102e9241c752620e575" + }, + "files": [ + "config/packages/messenger.yaml" + ] + }, + "symfony/mime": { + "version": "v5.1.5" + }, + "symfony/monolog-bridge": { + "version": "v4.1.3" + }, + "symfony/monolog-bundle": { + "version": "3.1", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.1", + "ref": "18ebf5a940573a20de06f9c4060101eeb438cf3d" + } + }, + "symfony/options-resolver": { + "version": "v4.1.3" + }, + "symfony/polyfill-ctype": { + "version": "v1.9.0" + }, + "symfony/polyfill-iconv": { + "version": "v1.9.0" + }, + "symfony/polyfill-intl-grapheme": { + "version": "v1.22.0" + }, + "symfony/polyfill-intl-icu": { + "version": "v1.9.0" + }, + "symfony/polyfill-intl-idn": { + "version": "v1.18.1" + }, + "symfony/polyfill-intl-normalizer": { + "version": "v1.17.0" + }, + "symfony/polyfill-mbstring": { + "version": "v1.9.0" + }, + "symfony/polyfill-php56": { + "version": "v1.15.0" + }, + "symfony/polyfill-php70": { + "version": "v1.9.0" + }, + "symfony/polyfill-php72": { + "version": "v1.18.1" + }, + "symfony/polyfill-php73": { + "version": "v1.18.1" + }, + "symfony/polyfill-php80": { + "version": "v1.15.0" + }, + "symfony/polyfill-util": { + "version": "v1.15.0" + }, + "symfony/process": { + "version": "v4.4.13" + }, + "symfony/property-access": { + "version": "v4.4.13" + }, + "symfony/property-info": { + "version": "v5.0.7" + }, + "symfony/proxy-manager-bridge": { + "version": "v4.4.13" + }, + "symfony/redis-messenger": { + "version": "v5.2.1" + }, + "symfony/routing": { + "version": "4.2", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.2", + "ref": "683dcb08707ba8d41b7e34adb0344bfd68d248a7" + }, + "files": [ + "config/packages/prod/routing.yaml", + "config/packages/routing.yaml", + "config/routes.yaml" + ] + }, + "symfony/security-bundle": { + "version": "4.4", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.4", + "ref": "7b4408dc203049666fe23fabed23cbadc6d8440f" + }, + "files": [ + "config/packages/security.yaml" + ] + }, + "symfony/security-core": { + "version": "v4.4.13" + }, + "symfony/security-csrf": { + "version": "v4.4.13" + }, + "symfony/security-guard": { + "version": "v4.4.13" + }, + "symfony/security-http": { + "version": "v4.4.13" + }, + "symfony/serializer": { + "version": "v5.0.7" + }, + "symfony/service-contracts": { + "version": "v2.1.3" + }, + "symfony/stopwatch": { + "version": "v5.1.5" + }, + "symfony/string": { + "version": "v5.2.1" + }, + "symfony/swiftmailer-bundle": { + "version": "2.5", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "2.5", + "ref": "ae4d22af30bbd484506bc1817c5a3ef72c855b93" + }, + "files": [ + "config/packages/dev/swiftmailer.yaml", + "config/packages/swiftmailer.yaml", + "config/packages/test/swiftmailer.yaml" + ] + }, + "symfony/templating": { + "version": "v4.4.13" + }, + "symfony/thanks": { + "version": "v1.2.9" + }, + "symfony/translation": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "2ad9d2545bce8ca1a863e50e92141f0b9d87ffcd" + }, + "files": [ + "config/packages/translation.yaml", + "translations/.gitignore" + ] + }, + "symfony/translation-contracts": { + "version": "v1.1.9" + }, + "symfony/twig-bridge": { + "version": "v4.4.13" + }, + "symfony/twig-bundle": { + "version": "4.4", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.4", + "ref": "15a41bbd66a1323d09824a189b485c126bbefa51" + }, + "files": [ + "config/packages/test/twig.yaml", + "config/packages/twig.yaml", + "templates/base.html.twig" + ] + }, + "symfony/validator": { + "version": "4.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.3", + "ref": "d902da3e4952f18d3bf05aab29512eb61cabd869" + }, + "files": [ + "config/packages/test/validator.yaml", + "config/packages/validator.yaml" + ] + }, + "symfony/var-dumper": { + "version": "v5.1.5" + }, + "symfony/var-exporter": { + "version": "v5.1.5" + }, + "symfony/web-link": { + "version": "v5.0.7" + }, + "symfony/web-profiler-bundle": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "6bdfa1a95f6b2e677ab985cd1af2eae35d62e0f6" + }, + "files": [ + "config/packages/dev/web_profiler.yaml", + "config/packages/test/web_profiler.yaml", + "config/routes/dev/web_profiler.yaml" + ] + }, + "symfony/yaml": { + "version": "v4.4.13" + }, + "symplify/auto-bind-parameter": { + "version": "v8.2.9" + }, + "symplify/autowire-array-parameter": { + "version": "v8.2.9" + }, + "symplify/coding-standard": { + "version": "v8.1.19" + }, + "symplify/console-color-diff": { + "version": "v8.2.9" + }, + "symplify/easy-coding-standard": { + "version": "v8.1.19" + }, + "symplify/package-builder": { + "version": "8.2.21" + }, + "symplify/set-config-resolver": { + "version": "8.2.21" + }, + "symplify/smart-file-system": { + "version": "8.2.21" + }, + "textalk/websocket": { + "version": "1.2.0" + }, + "theofidry/alice-data-fixtures": { + "version": "1.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "1.0", + "ref": "fe5a50faf580eb58f08ada2abe8afbd2d4941e05" + } + }, + "theseer/tokenizer": { + "version": "1.2.0" + }, + "twig/intl-extra": { + "version": "v2.13.1" + }, + "twig/twig": { + "version": "v2.13.1" + }, + "vimeo/psalm": { + "version": "3.11.6" + }, + "webimpress/safe-writer": { + "version": "2.1.0" + }, + "webmozart/assert": { + "version": "1.9.1" + }, + "webmozart/path-util": { + "version": "2.3.0" + }, + "willdurand/hateoas": { + "version": "2.12.0" + }, + "willdurand/hateoas-bundle": { + "version": "1.4", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "1.4", + "ref": "34df072c6edaa61ae19afb2f3a239f272fecab87" + } + }, + "willdurand/jsonp-callback-validator": { + "version": "v1.1.0" + }, + "willdurand/negotiation": { + "version": "v2.3.1" + }, + "winzou/state-machine": { + "version": "0.3.3" + }, + "winzou/state-machine-bundle": { + "version": "0.3.2" + }, + "zendframework/zend-code": { + "version": "3.4.1" + }, + "zendframework/zend-eventmanager": { + "version": "3.2.1" + }, + "zendframework/zend-stdlib": { + "version": "3.2.1" + } +} From 2d5c8540f03c5431a8fbe45200faddb79d9563a7 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 14:46:59 +0100 Subject: [PATCH 30/31] Update symfony.lock --- symfony.lock | 3 --- 1 file changed, 3 deletions(-) diff --git a/symfony.lock b/symfony.lock index 055cdd9..9bd1f63 100644 --- a/symfony.lock +++ b/symfony.lock @@ -717,9 +717,6 @@ "symfony/css-selector": { "version": "v5.2.4" }, - "symfony/debug": { - "version": "v4.4.20" - }, "symfony/debug-bundle": { "version": "4.1", "recipe": { From f58e6188b88709095aec4a8b4fcf33b25f407a3c Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Fri, 12 Mar 2021 15:01:36 +0100 Subject: [PATCH 31/31] Update cache key for recipe workflow --- .github/workflows/recipe.yaml | 4 ++-- .github/workflows/tests.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/recipe.yaml b/.github/workflows/recipe.yaml index 2d9dd11..049b3d1 100644 --- a/.github/workflows/recipe.yaml +++ b/.github/workflows/recipe.yaml @@ -45,8 +45,8 @@ jobs: id: cache-composer with: path: /home/runner/.composer/cache - key: composer2-php:${{ matrix.php }}-${{ matrix.sylius }}-${{ github.sha }} - restore-keys: composer2-php:${{ matrix.php }}-${{ matrix.sylius }}- + key: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}-${{ github.sha }} + restore-keys: composer2-php:${{ matrix.php }}-sylius:${{ matrix.sylius }}- - run: mkdir -p /home/runner/.composer/cache if: steps.cache-composer.outputs.cache-hit != 'true' diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1e906f1..a56c063 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -71,4 +71,5 @@ jobs: - run: make test.schema continue-on-error: true # See https://github.com/Sylius/Sylius/pull/12413 + #- run: make test.container