diff --git a/.github/workflows/recipe.yaml b/.github/workflows/recipe.yaml index 63d5a66..049b3d1 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, 1.9] steps: - name: Setup PHP @@ -44,21 +45,21 @@ 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 }}-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' - - 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 }} - 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 }}.0" - name: Setup some requirements working-directory: ./sylius 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..a56c063 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 }} @@ -70,5 +70,6 @@ jobs: - run: make test.twig - run: make test.schema + continue-on-error: true # See https://github.com/Sylius/Sylius/pull/12413 #- run: make test.container 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/Makefile b/Makefile index b369333..507ebf1 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 @@ -95,7 +96,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 @@ -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,9 @@ 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}" + ### ### PLATFORM ### ¯¯¯¯¯¯¯¯ diff --git a/composer.json b/composer.json index f3a28d0..ebb489e 100644 --- a/composer.json +++ b/composer.json @@ -7,9 +7,8 @@ "require": { "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" + "gedmo/doctrine-extensions": "^2.4.12 || ^3.0", + "monsieurbiz/sylius-rich-editor-plugin": "^2.0@RC" }, "require-dev": { "behat/behat": "^3.6.1", @@ -41,10 +40,12 @@ "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", - "phpmd/phpmd": "@stable" + "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" }, "prefer-stable": true, "autoload": { @@ -62,7 +63,8 @@ "extra": { "branch-alias": { "dev-master": "1.0-dev" - } + }, + "config-dir": "./tests/Application/config/" }, "scripts": { "auto-scripts": { @@ -71,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" } } 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/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..e8e4bd0 100644 --- a/src/Fixture/PageFixture.php +++ b/src/Fixture/PageFixture.php @@ -13,11 +13,22 @@ 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 { + /** + * @param EntityManagerInterface $pageManager + * @param PageFixtureFactoryInterface $exampleFactory + */ + public function __construct(EntityManagerInterface $pageManager, PageFixtureFactoryInterface $exampleFactory) + { + parent::__construct($pageManager, $exampleFactory); + } + /** * {@inheritdoc} */ 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'); + } +} 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" } 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..c098f43 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -26,11 +26,6 @@ services: $dataClass: '%monsieurbiz_cms_page.model.page_translation.class%' $validationGroups: ['monsieurbiz'] - # Fixtures - MonsieurBiz\SyliusCmsPagePlugin\Fixture\PageFixture: - arguments: - $exampleFactory: '@MonsieurBiz\SyliusCmsPagePlugin\Fixture\Factory\PageFixtureFactory' - # Routing Context MonsieurBiz\SyliusCmsPagePlugin\Routing\RequestContext: decorates: router.request_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) }} #}

diff --git a/symfony.lock b/symfony.lock index 307cf4e..9bd1f63 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,7 @@ ] }, "symfony/css-selector": { - "version": "v5.1.8" - }, - "symfony/debug": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/debug-bundle": { "version": "4.1", @@ -780,37 +730,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 +778,7 @@ ] }, "symfony/form": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symfony/framework-bundle": { "version": "4.4", @@ -852,16 +805,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 +819,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 +847,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 +877,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 +927,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 +965,7 @@ ] }, "symfony/templating": { - "version": "v4.4.16" - }, - "symfony/thanks": { - "version": "v1.2.10" + "version": "v5.2.4" }, "symfony/translation": { "version": "3.3", @@ -1031,10 +981,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 +1014,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 +1037,7 @@ ] }, "symfony/yaml": { - "version": "v4.4.16" + "version": "v5.2.4" }, "symplify/auto-bind-parameter": { "version": "8.3.16" @@ -1123,7 +1073,7 @@ "version": "8.3.48" }, "textalk/websocket": { - "version": "1.4.1" + "version": "1.5.2" }, "theofidry/alice-data-fixtures": { "version": "1.0", @@ -1138,58 +1088,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" 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/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 index b3f64bf..ef8dbe7 100644 --- a/tests/Application/config/packages/doctrine.yaml +++ b/tests/Application/config/packages/doctrine.yaml @@ -1,23 +1,6 @@ -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_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_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/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/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_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/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 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 592f7a8..0000000 Binary files a/tests/Application/public/favicon.ico and /dev/null differ 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..911cdf3 100644 --- a/tests/Application/src/Kernel.php +++ b/tests/Application/src/Kernel.php @@ -15,25 +15,14 @@ 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 +/** @final */ +class Kernel extends BaseKernel { use MicroKernelTrait; @@ -51,6 +40,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 +79,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 index a432a7f..b5e0a32 100644 --- a/tests/Application/symfony.lock +++ b/tests/Application/symfony.lock @@ -1,45 +1,71 @@ { - "akeneo/phpspec-skip-example-extension": { - "version": "v3.0.0" + "aeon-php/calendar": { + "version": "0.15.0" }, - "behat/behat": { - "version": "v3.5.0" + "amphp/amp": { + "version": "v2.5.0" }, - "behat/gherkin": { - "version": "v4.5.1" + "amphp/byte-stream": { + "version": "v1.8.0" }, - "behat/mink": { - "version": "1.7.x-dev" + "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/mink-browserkit-driver": { - "version": "1.3.3" + "behat/behat": { + "version": "v3.7.0" }, - "behat/mink-extension": { - "version": "2.3.1" + "behat/gherkin": { + "version": "v4.6.2" }, "behat/mink-selenium2-driver": { - "version": "v1.3.1" + "version": "v1.4.0" }, "behat/transliterator": { - "version": "v1.2.0" + "version": "v1.3.0" }, "clue/stream-filter": { - "version": "v1.4.0" + "version": "v1.4.1" }, "coduo/php-matcher": { - "version": "3.1.0" + "version": "4.0.0" }, "coduo/php-to-string": { - "version": "2.0.1" + "version": "3.0.0" + }, + "composer/package-versions-deprecated": { + "version": "1.11.99.1" }, "composer/semver": { - "version": "1.4.2" + "version": "1.5.1" }, "composer/xdebug-handler": { - "version": "1.2.0" + "version": "1.4.3" }, - "container-interop/container-interop": { - "version": "1.2.0" + "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", @@ -47,71 +73,93 @@ "repo": "github.com/symfony/recipes", "branch": "master", "version": "1.0", - "ref": "cb4152ebcadbe620ea2261da1a1c5a9b8cea7672" - } + "ref": "a2759dd6123694c8d901d0ec80006e044c2e6457" + }, + "files": [ + "config/routes/annotations.yaml" + ] }, "doctrine/cache": { - "version": "v1.8.0" + "version": "1.10.2" }, "doctrine/collections": { - "version": "v1.5.0" + "version": "1.6.7" }, "doctrine/common": { - "version": "v2.9.0" + "version": "2.13.3" }, "doctrine/data-fixtures": { - "version": "v1.3.1" + "version": "1.4.4" }, "doctrine/dbal": { - "version": "v2.8.0" + "version": "2.10.3" }, "doctrine/doctrine-bundle": { - "version": "1.6", + "version": "1.12", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "1.6", - "ref": "ae205d5114e719deb64d2110f56ef910787d1e04" - } - }, - "doctrine/doctrine-cache-bundle": { - "version": "1.3.3" + "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": "1.2", + "version": "2.2", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "1.2", - "ref": "c1431086fec31f17fbcfe6d6d7e92059458facc1" - } + "version": "2.2", + "ref": "baaa439e3e3179e69e3da84b671f0a3e4a2f56ad" + }, + "files": [ + "config/packages/doctrine_migrations.yaml", + "migrations/.gitignore" + ] }, "doctrine/event-manager": { - "version": "v1.0.0" + "version": "1.1.1" }, "doctrine/inflector": { - "version": "v1.3.0" + "version": "1.3.1" }, "doctrine/instantiator": { - "version": "1.1.0" + "version": "1.3.1" }, "doctrine/lexer": { - "version": "v1.0.1" + "version": "1.2.1" }, "doctrine/migrations": { - "version": "v1.8.1" + "version": "3.0.1" }, "doctrine/orm": { - "version": "v2.6.2" + "version": "v2.7.3" }, "doctrine/persistence": { - "version": "v1.0.0" + "version": "1.3.8" }, - "doctrine/reflection": { - "version": "v1.0.0" + "doctrine/sql-formatter": { + "version": "1.1.1" }, "egulias/email-validator": { - "version": "2.1.5" + "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" @@ -119,20 +167,26 @@ "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": "0.1" - }, - "friends-of-behat/suite-settings-extension": { - "version": "v1.0.1" + "version": "v0.3.1" }, "friends-of-behat/symfony-extension": { - "version": "v1.2.2" + "version": "2.0", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "2.0", + "ref": "3d21344765fd3440a85bdd27d4cada186ec628bd" + } }, "friends-of-behat/variadic-extension": { - "version": "v1.1.0" + "version": "v1.3.0" }, "friendsofphp/php-cs-fixer": { "version": "2.2", @@ -140,14 +194,20 @@ "repo": "github.com/symfony/recipes", "branch": "master", "version": "2.2", - "ref": "81dee417d2cc60cd1c9d6208dff2ec22a1103e93" - } + "ref": "cc05ab6abf6894bddb9bbd6a252459010ebe040b" + }, + "files": [ + ".php_cs.dist" + ] + }, + "friendsofphp/proxy-manager-lts": { + "version": "v1.0.2" }, "friendsofsymfony/oauth-server-bundle": { - "version": "1.6.1" + "version": "1.6.2" }, "friendsofsymfony/oauth2-php": { - "version": "1.2.3" + "version": "1.3.0" }, "friendsofsymfony/rest-bundle": { "version": "2.2", @@ -155,26 +215,23 @@ "repo": "github.com/symfony/recipes-contrib", "branch": "master", "version": "2.2", - "ref": "258300d52be6ad59b32a888d5ddafbf9638540ff" + "ref": "cad41ef93d6150067ae2bb3c7fd729492dff6f0a" } }, - "fzaninotto/faker": { - "version": "v1.8.0" - }, "gedmo/doctrine-extensions": { - "version": "v2.4.36" + "version": "v2.4.42" }, "guzzlehttp/guzzle": { - "version": "6.3.3" + "version": "6.5.5" }, "guzzlehttp/promises": { "version": "v1.3.1" }, "guzzlehttp/psr7": { - "version": "1.4.2" + "version": "1.6.1" }, "hamcrest/hamcrest-php": { - "version": "v2.0.0" + "version": "v2.0.1" }, "hwi/oauth-bundle": { "version": "0.6", @@ -186,25 +243,19 @@ } }, "imagine/imagine": { - "version": "v0.7.1" + "version": "1.2.3" }, "instaclick/php-webdriver": { - "version": "1.4.5" - }, - "jdorn/sql-formatter": { - "version": "v1.2.17" + "version": "1.4.7" }, "jean85/pretty-package-versions": { - "version": "1.2" + "version": "1.5.0" }, "jms/metadata": { - "version": "1.6.0" - }, - "jms/parser-lib": { - "version": "1.0.0" + "version": "1.7.0" }, "jms/serializer": { - "version": "1.13.0" + "version": "1.14.1" }, "jms/serializer-bundle": { "version": "2.0", @@ -216,43 +267,67 @@ } }, "knplabs/gaufrette": { - "version": "v0.6.0" + "version": "v0.8.3" }, "knplabs/knp-gaufrette-bundle": { - "version": "v0.5.3" + "version": "v0.7.1" }, "knplabs/knp-menu": { - "version": "2.3.0" + "version": "v3.1.2" }, "knplabs/knp-menu-bundle": { - "version": "v2.2.1" + "version": "v3.0.0" }, - "lakion/mink-debug-extension": { - "version": "v1.2.3" + "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": "v3.1.3" + "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.1" + "version": "1.8.2" }, "league/uri-hostname-parser": { "version": "1.1.1" }, "league/uri-interfaces": { - "version": "1.1.0" + "version": "1.1.1" }, "league/uri-manipulations": { "version": "1.5.0" }, "league/uri-parser": { - "version": "1.4.0" + "version": "1.4.1" }, "league/uri-schemes": { - "version": "1.2.0" + "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", @@ -260,83 +335,96 @@ "repo": "github.com/symfony/recipes-contrib", "branch": "master", "version": "1.8", - "ref": "7f6676627c1ceeeee204553d24a0545d5f918b7b" + "ref": "5a5bdc2d0e2533ed6935d5ae562f2b318a8fc1ee" } }, + "marcj/topsort": { + "version": "1.1.0" + }, "matthiasnoback/symfony-config-test": { - "version": "3.1.1" + "version": "4.2.0" }, "matthiasnoback/symfony-dependency-injection-test": { - "version": "v2.3.1" + "version": "4.1.1" }, "mikey179/vfsstream": { - "version": "v1.6.5" + "version": "v1.6.8" }, "mockery/mockery": { - "version": "1.1.0" + "version": "1.4.2" }, "monolog/monolog": { - "version": "1.23.0" + "version": "1.25.5" }, "myclabs/deep-copy": { - "version": "1.8.1" + "version": "1.10.1" + }, + "namshi/jose": { + "version": "7.2.3" }, "nelmio/alice": { "version": "3.2", "recipe": { - "repo": "github.com/symfony/recipes-contrib", + "repo": "github.com/symfony/recipes", "branch": "master", "version": "3.2", - "ref": "5ef2976310e8f9621c1a722a73bfbe115c1559a3" - } + "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.4.2" + "version": "v2.5.2" }, "nette/robot-loader": { - "version": "v3.0.4" + "version": "v3.3.0" }, "nette/utils": { - "version": "v2.5.2" + "version": "v3.1.3" }, "nikic/php-parser": { - "version": "v4.3.0" - }, - "ocramius/package-versions": { - "version": "1.3.0" + "version": "v4.6.0" }, "ocramius/proxy-manager": { - "version": "2.2.0" + "version": "2.10.1" }, "openlss/lib-array2xml": { - "version": "0.0.10" + "version": "1.0.0" }, "pagerfanta/pagerfanta": { - "version": "v2.0.1" - }, - "pamil/prophecy-common": { - "version": "v0.1.0" + "version": "v2.4.1" }, "paragonie/random_compat": { - "version": "v2.0.17" + "version": "v2.0.18" }, "payum/iso4217": { "version": "1.0.1" }, "payum/payum": { - "version": "1.5.0" + "version": "1.6.0" }, "payum/payum-bundle": { - "version": "2.3.1" + "version": "2.4", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "2.4", + "ref": "72ad834a0f4a99175beddb5e2d049136f4a50a67" + } }, "phar-io/manifest": { - "version": "1.0.1" + "version": "1.0.3" }, "phar-io/version": { - "version": "1.0.1" + "version": "2.0.1" }, "php": { - "version": "7.3.15" + "version": "7.3" }, "php-cs-fixer/diff": { "version": "v1.3.0" @@ -362,9 +450,6 @@ "php-http/promise": { "version": "v1.0.0" }, - "phpcollection/phpcollection": { - "version": "0.5.0" - }, "phpdocumentor/reflection-common": { "version": "1.0.1" }, @@ -374,9 +459,6 @@ "phpdocumentor/type-resolver": { "version": "0.4.0" }, - "phpoption/phpoption": { - "version": "1.5.0" - }, "phpspec/php-diff": { "version": "v1.1.0" }, @@ -386,23 +468,17 @@ "phpspec/prophecy": { "version": "1.8.0" }, - "phpstan/extension-installer": { - "version": "1.0.1" - }, "phpstan/phpdoc-parser": { - "version": "0.3" + "version": "0.4.9" }, "phpstan/phpstan": { - "version": "0.12.3" + "version": "0.12.29" }, "phpstan/phpstan-doctrine": { - "version": "0.11.5" - }, - "phpstan/phpstan-symfony": { - "version": "0.10.1" + "version": "0.10" }, - "phpstan/phpstan-webmozart-assert": { - "version": "0.11.2" + "phpstan/phpstan-shim": { + "version": "0.10.3" }, "phpunit/php-code-coverage": { "version": "5.3.2" @@ -431,18 +507,30 @@ "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/http-client": { + "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" }, @@ -450,7 +538,7 @@ "version": "1.0.1" }, "ralouphie/getallheaders": { - "version": "2.0.5" + "version": "3.0.3" }, "ramsey/uuid": { "version": "3.8.0" @@ -485,6 +573,9 @@ "sebastian/resource-operations": { "version": "1.0.0" }, + "sebastian/type": { + "version": "1.1.3" + }, "sebastian/version": { "version": "2.0.1" }, @@ -506,18 +597,42 @@ "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.1.0" + "version": "1.9.1" }, "sonata-project/form-extensions": { - "version": "1.0.0" + "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.1.1" + "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": { @@ -528,7 +643,7 @@ } }, "stripe/stripe-php": { - "version": "v6.28.1" + "version": "v4.13.0" }, "swiftmailer/swiftmailer": { "version": "v6.1.2" @@ -539,29 +654,41 @@ "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.5.1" + "version": "v1.7.5" }, "sylius/mailer-bundle": { - "version": "v1.4.4" + "version": "v1.5.1" }, "sylius/registry": { - "version": "v1.4.1" + "version": "v1.4.0" }, "sylius/resource-bundle": { - "version": "v1.4.4" - }, - "sylius/sylius": { - "version": "v1.3.6" + "version": "v1.6.4" }, "sylius/theme-bundle": { - "version": "v1.4.6" + "version": "v1.4.2" + }, + "symfony/amqp-messenger": { + "version": "v5.2.1" }, "symfony/asset": { "version": "v4.1.3" @@ -573,7 +700,10 @@ "version": "v4.1.3" }, "symfony/cache-contracts": { - "version": "v1.1.5" + "version": "v2.1.3" + }, + "symfony/class-loader": { + "version": "v3.4.14" }, "symfony/config": { "version": "v4.1.3" @@ -587,15 +717,9 @@ "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": { @@ -608,9 +732,15 @@ "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" }, @@ -618,13 +748,13 @@ "version": "v4.1.3" }, "symfony/error-handler": { - "version": "v4.4.8" + "version": "v4.4.13" }, "symfony/event-dispatcher": { "version": "v4.1.3" }, "symfony/event-dispatcher-contracts": { - "version": "v1.1.5" + "version": "v1.1.9" }, "symfony/expression-language": { "version": "v4.1.3" @@ -656,8 +786,8 @@ "ref": "87c585d24de9f43bca80ebcfd5cf5cb39445d95f" } }, - "symfony/http-client": { - "version": "v5.0.5" + "symfony/http-client-contracts": { + "version": "v2.3.1" }, "symfony/http-foundation": { "version": "v4.1.3" @@ -665,14 +795,23 @@ "symfony/http-kernel": { "version": "v4.1.3" }, - "symfony/inflector": { - "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": "v4.3.1" + "version": "v5.1.5" }, "symfony/monolog-bridge": { "version": "v4.1.3" @@ -695,62 +834,103 @@ "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.11.0" + "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.9.0" + "version": "v1.18.1" }, "symfony/polyfill-php73": { - "version": "v1.11.0" + "version": "v1.18.1" }, "symfony/polyfill-php80": { - "version": "v1.17.0" + "version": "v1.15.0" + }, + "symfony/polyfill-util": { + "version": "v1.15.0" }, "symfony/process": { - "version": "v4.1.3" + "version": "v4.4.13" }, "symfony/property-access": { - "version": "v4.1.3" + "version": "v4.4.13" + }, + "symfony/property-info": { + "version": "v5.0.7" }, "symfony/proxy-manager-bridge": { - "version": "v4.1.3" + "version": "v4.4.13" + }, + "symfony/redis-messenger": { + "version": "v5.2.1" }, "symfony/routing": { - "version": "4.0", + "version": "4.2", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "4.0", - "ref": "cda8b550123383d25827705d05a42acf6819fe4e" - } - }, - "symfony/security": { - "version": "v4.1.3" + "version": "4.2", + "ref": "683dcb08707ba8d41b7e34adb0344bfd68d248a7" + }, + "files": [ + "config/packages/prod/routing.yaml", + "config/packages/routing.yaml", + "config/routes.yaml" + ] }, "symfony/security-bundle": { - "version": "3.3", + "version": "4.4", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "3.3", - "ref": "f8a63faa0d9521526499c0a8f403c9964ecb0527" - } + "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": "v1.1.6" + "version": "v2.1.3" }, "symfony/stopwatch": { - "version": "v4.1.3" + "version": "v5.1.5" + }, + "symfony/string": { + "version": "v5.2.1" }, "symfony/swiftmailer-bundle": { "version": "2.5", @@ -758,14 +938,19 @@ "repo": "github.com/symfony/recipes", "branch": "master", "version": "2.5", - "ref": "3db029c03e452b4a23f7fc45cec7c922c2247eb8" - } + "ref": "ae4d22af30bbd484506bc1817c5a3ef72c855b93" + }, + "files": [ + "config/packages/dev/swiftmailer.yaml", + "config/packages/swiftmailer.yaml", + "config/packages/test/swiftmailer.yaml" + ] }, "symfony/templating": { - "version": "v4.1.3" + "version": "v4.4.13" }, "symfony/thanks": { - "version": "v1.0.8" + "version": "v1.2.9" }, "symfony/translation": { "version": "3.3", @@ -773,38 +958,54 @@ "repo": "github.com/symfony/recipes", "branch": "master", "version": "3.3", - "ref": "6bcd6c570c017ea6ae5a7a6a027c929fd3542cd8" - } + "ref": "2ad9d2545bce8ca1a863e50e92141f0b9d87ffcd" + }, + "files": [ + "config/packages/translation.yaml", + "translations/.gitignore" + ] }, "symfony/translation-contracts": { - "version": "v1.1.6" + "version": "v1.1.9" }, "symfony/twig-bridge": { - "version": "v4.1.3" + "version": "v4.4.13" }, "symfony/twig-bundle": { - "version": "3.3", + "version": "4.4", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "3.3", - "ref": "f75ac166398e107796ca94cc57fa1edaa06ec47f" - } + "version": "4.4", + "ref": "15a41bbd66a1323d09824a189b485c126bbefa51" + }, + "files": [ + "config/packages/test/twig.yaml", + "config/packages/twig.yaml", + "templates/base.html.twig" + ] }, "symfony/validator": { - "version": "4.1", + "version": "4.3", "recipe": { "repo": "github.com/symfony/recipes", "branch": "master", - "version": "4.1", - "ref": "0cdc982334f45d554957a6167e030482795bf9d7" - } + "version": "4.3", + "ref": "d902da3e4952f18d3bf05aab29512eb61cabd869" + }, + "files": [ + "config/packages/test/validator.yaml", + "config/packages/validator.yaml" + ] }, "symfony/var-dumper": { - "version": "v4.1.3" + "version": "v5.1.5" }, "symfony/var-exporter": { - "version": "v4.2.1" + "version": "v5.1.5" + }, + "symfony/web-link": { + "version": "v5.0.7" }, "symfony/web-profiler-bundle": { "version": "3.3", @@ -813,55 +1014,84 @@ "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.1.3" + "version": "v4.4.13" + }, + "symplify/auto-bind-parameter": { + "version": "v8.2.9" + }, + "symplify/autowire-array-parameter": { + "version": "v8.2.9" }, "symplify/coding-standard": { - "version": "v4.6.1" + "version": "v8.1.19" + }, + "symplify/console-color-diff": { + "version": "v8.2.9" }, "symplify/easy-coding-standard": { - "version": "v4.6.1" + "version": "v8.1.19" }, "symplify/package-builder": { - "version": "v4.6.1" + "version": "8.2.21" }, "symplify/set-config-resolver": { - "version": "v7.1.3" + "version": "8.2.21" }, "symplify/smart-file-system": { - "version": "v7.1.3" + "version": "8.2.21" + }, + "textalk/websocket": { + "version": "1.2.0" }, "theofidry/alice-data-fixtures": { "version": "1.0", "recipe": { - "repo": "github.com/symfony/recipes-contrib", + "repo": "github.com/symfony/recipes", "branch": "master", "version": "1.0", "ref": "fe5a50faf580eb58f08ada2abe8afbd2d4941e05" } }, "theseer/tokenizer": { - "version": "1.1.0" + "version": "1.2.0" }, "twig/intl-extra": { - "version": "v2.12.5" + "version": "v2.13.1" }, "twig/twig": { - "version": "v2.5.0" + "version": "v2.13.1" + }, + "vimeo/psalm": { + "version": "3.11.6" + }, + "webimpress/safe-writer": { + "version": "2.1.0" }, "webmozart/assert": { - "version": "1.3.0" + "version": "1.9.1" }, - "white-october/pagerfanta-bundle": { - "version": "v1.2.1" + "webmozart/path-util": { + "version": "2.3.0" }, "willdurand/hateoas": { "version": "2.12.0" }, "willdurand/hateoas-bundle": { - "version": "1.4.0" + "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" @@ -873,18 +1103,15 @@ "version": "0.3.3" }, "winzou/state-machine-bundle": { - "version": "v0.3.1" + "version": "0.3.2" }, "zendframework/zend-code": { - "version": "3.3.1" + "version": "3.4.1" }, "zendframework/zend-eventmanager": { "version": "3.2.1" }, - "zendframework/zend-hydrator": { - "version": "2.4.0" - }, "zendframework/zend-stdlib": { - "version": "3.2.0" + "version": "3.2.1" } } 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