Skip to content

Commit

Permalink
feat: add WpQuerySplitter to split massive HIS code relationship quer…
Browse files Browse the repository at this point in the history
…ies into smaller ones
  • Loading branch information
zhyian committed Jul 2, 2024
1 parent 78b51f2 commit 11ad166
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Infrastructure/Repository/RepositoryModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Fau\DegreeProgram\Common\Infrastructure\Repository\WordPressDatabaseDegreeProgramRepository;
use Fau\DegreeProgram\Common\Infrastructure\Repository\WordPressDatabaseDegreeProgramViewRepository;
use Fau\DegreeProgram\Common\Infrastructure\Repository\WpQueryArgsBuilder;
use Fau\DegreeProgram\Common\Infrastructure\Repository\WpQuerySplitter;
use Fau\DegreeProgram\Common\Infrastructure\Sanitizer\HtmlDegreeProgramSanitizer;
use Fau\DegreeProgram\Output\Application\OriginalDegreeProgramViewRepository;
use Fau\DegreeProgram\Output\Infrastructure\ApiClient\ApiClient;
Expand Down Expand Up @@ -60,6 +61,10 @@ public function services(): array
WordPressDatabaseDegreeProgramCollectionRepository::class => static fn(ContainerInterface $container) => new WordPressDatabaseDegreeProgramCollectionRepository(

Check failure on line 61 in src/Infrastructure/Repository/RepositoryModule.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

TooManyArguments

src/Infrastructure/Repository/RepositoryModule.php:61:122: TooManyArguments: Too many arguments for Fau\DegreeProgram\Common\Infrastructure\Repository\WordPressDatabaseDegreeProgramCollectionRepository::__construct - expecting 2 but saw 3 (see https://psalm.dev/026)
$container->get(DegreeProgramViewRepository::class),
$container->get(WpQueryArgsBuilder::class),
$container->get(WpQuerySplitter::class)

Check failure on line 64 in src/Infrastructure/Repository/RepositoryModule.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

UndefinedClass

src/Infrastructure/Repository/RepositoryModule.php:64:37: UndefinedClass: Class, interface or enum named Fau\DegreeProgram\Common\Infrastructure\Repository\WpQuerySplitter does not exist (see https://psalm.dev/019)

Check failure on line 64 in src/Infrastructure/Repository/RepositoryModule.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

MixedArgument

src/Infrastructure/Repository/RepositoryModule.php:64:37: MixedArgument: Argument 1 of Psr\Container\ContainerInterface::get cannot be mixed, expecting string (see https://psalm.dev/030)
),
WpQuerySplitter::class => static fn(ContainerInterface $container) => new WpQuerySplitter(

Check failure on line 66 in src/Infrastructure/Repository/RepositoryModule.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

UndefinedClass

src/Infrastructure/Repository/RepositoryModule.php:66:17: UndefinedClass: Class, interface or enum named Fau\DegreeProgram\Common\Infrastructure\Repository\WpQuerySplitter does not exist (see https://psalm.dev/019)

Check failure on line 66 in src/Infrastructure/Repository/RepositoryModule.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-php / static-analysis-php

UndefinedClass

src/Infrastructure/Repository/RepositoryModule.php:66:91: UndefinedClass: Class, interface or enum named Fau\DegreeProgram\Common\Infrastructure\Repository\WpQuerySplitter does not exist (see https://psalm.dev/019)
$container->get(WpQueryArgsBuilder::class)
),
DegreeProgramCollectionRepository::class => static fn(ContainerInterface $container) => new CachedApiCollectionRepository(
$container->get(WordPressDatabaseDegreeProgramCollectionRepository::class),
Expand Down

0 comments on commit 11ad166

Please sign in to comment.