From 8fd1085e328a293b0a5fa57c7e6904071a139a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Tue, 4 Jun 2024 14:33:05 +0200 Subject: [PATCH] Bump resource bundle version on dev requirements --- .github/workflows/build.yml | 1 - composer.json | 2 +- .../Infrastructure/Sylius/Resource/BoardGameResource.php | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86761bdf..2d81d5f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,7 +96,6 @@ jobs: - name: Run tests for grids with php config - if: matrix.symfony == '^5.3' run: | (cd tests/Application && bin/console cache:clear --env=test_grids_with_php_config) composer test-php-config diff --git a/composer.json b/composer.json index f8c9163c..e4bc3922 100644 --- a/composer.json +++ b/composer.json @@ -70,7 +70,7 @@ "phpstan/phpstan-webmozart-assert": "^1.2", "phpunit/phpunit": "^9.5", "sylius-labs/coding-standard": "^4.0", - "sylius/resource-bundle": "dev-poc-new-resource-metadata", + "sylius/resource-bundle": "^1.11@beta", "symfony/console": "^5.4 || ^6.0", "symfony/dotenv": "^5.4 || ^6.0", "symfony/maker-bundle": "^1.36", diff --git a/tests/Application/src/BoardGameBlog/Infrastructure/Sylius/Resource/BoardGameResource.php b/tests/Application/src/BoardGameBlog/Infrastructure/Sylius/Resource/BoardGameResource.php index 9fca84a6..af4a6065 100644 --- a/tests/Application/src/BoardGameBlog/Infrastructure/Sylius/Resource/BoardGameResource.php +++ b/tests/Application/src/BoardGameBlog/Infrastructure/Sylius/Resource/BoardGameResource.php @@ -13,11 +13,11 @@ namespace App\BoardGameBlog\Infrastructure\Sylius\Resource; -use Sylius\Component\Resource\Metadata\Index; -use Sylius\Component\Resource\Metadata\Resource; use Sylius\Component\Resource\Model\ResourceInterface; +use Sylius\Resource\Metadata\AsResource; +use Sylius\Resource\Metadata\Index; -#[Resource( +#[AsResource( alias: 'app.board_game', section: 'admin', templatesDir: 'crud',