Skip to content

Commit

Permalink
NTR: fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Dec 18, 2024
1 parent f317ef9 commit b124d59
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
1 change: 1 addition & 0 deletions .phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ parameters:
- polyfill/Shopware
ignoreErrors:
- '#.*Shopware\\Commercial\\ReturnManagement\\Entity\\OrderReturn.*#'
- identifier: missingType.generics

services:
- class: MolliePayments\PHPStan\Rules\NoManufacturerRule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,33 @@
#[Package('core')]
class EntityRepository implements EntityRepositoryInterface
{
private EntityDefinition $definition;
private EntityReaderInterface $reader;
private VersionManager $versionManager;
private EntitySearcherInterface $searcher;
private EntityAggregatorInterface $aggregator;
private EventDispatcherInterface $eventDispatcher;
private EntityLoadedEventFactory $eventFactory;

/**
* @internal
*/
public function __construct(
private readonly EntityDefinition $definition,
private readonly EntityReaderInterface $reader,
private readonly VersionManager $versionManager,
private readonly EntitySearcherInterface $searcher,
private readonly EntityAggregatorInterface $aggregator,
private readonly EventDispatcherInterface $eventDispatcher,
private readonly EntityLoadedEventFactory $eventFactory,
EntityDefinition $definition,
EntityReaderInterface $reader,
VersionManager $versionManager,
EntitySearcherInterface $searcher,
EntityAggregatorInterface $aggregator,
EventDispatcherInterface $eventDispatcher,
EntityLoadedEventFactory $eventFactory,
) {
$this->definition = $definition;
$this->reader = $reader;
$this->versionManager = $versionManager;
$this->searcher = $searcher;
$this->aggregator = $aggregator;
$this->eventDispatcher = $eventDispatcher;
$this->eventFactory = $eventFactory;
}

public function getDefinition(): EntityDefinition
Expand Down

0 comments on commit b124d59

Please sign in to comment.