Skip to content

Commit a7234bb

Browse files
authored
fix: use EntityWriterInterface instead of EntityWriter
1 parent db123c2 commit a7234bb

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/actions/composer/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: 'Setup PHP and install Composer dependencies'
44

55
inputs:
66
additional-extensions:
7-
description: 'Install additionall PHP extensions (must start with a comma!)'
7+
description: 'Install additional PHP extensions (must start with a comma!)'
88
required: false
99
default: ''
1010
composer-install:

.github/workflows/_test.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
composer-command:
2727
- install
2828
- require shopware/core:~6.6.10.0
29-
- require shopware/core:~6.6.9.0
30-
- require shopware/core:~6.6.8.0
31-
- require shopware/core:~6.6.7.0
32-
- require shopware/core:~6.6.6.0
33-
- require shopware/core:~6.6.5.0
34-
- require shopware/core:~6.6.4.0
29+
- require shopware/core:~6.6.9.0 --no-security-blocking
30+
- require shopware/core:~6.6.8.0 --no-security-blocking
31+
- require shopware/core:~6.6.7.0 --no-security-blocking
32+
- require shopware/core:~6.6.6.0 --no-security-blocking
33+
- require shopware/core:~6.6.5.0 --no-security-blocking
34+
- require shopware/core:~6.6.4.0 --no-security-blocking
3535
#- require shopware/core:~6.6.3.0
3636
#- require shopware/core:~6.6.2.0
3737
#- require shopware/core:~6.6.1.0

src/DataAbstractionLayer/ObsoleteRelationsDeleter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
use Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\MultiFilter;
1414
use Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\NotFilter;
1515
use Shopware\Core\Framework\DataAbstractionLayer\Write\EntityWriter;
16+
use Shopware\Core\Framework\DataAbstractionLayer\Write\EntityWriterInterface;
1617
use Shopware\Core\Framework\DataAbstractionLayer\Write\WriteContext;
18+
use Symfony\Component\DependencyInjection\Attribute\Autowire;
1719

1820
final readonly class ObsoleteRelationsDeleter
1921
{
2022
public function __construct(
21-
private EntityWriter $entityWriter,
23+
#[Autowire(service: EntityWriter::class)]
24+
private EntityWriterInterface $entityWriter,
2225
private CleanupRelationsRegistry $registry,
2326
private DefinitionInstanceRegistry $definitionInstanceRegistry,
2427
) {}

0 commit comments

Comments
 (0)