Skip to content

Commit

Permalink
Merge pull request #17 from patchlevel/add-argument-alias-for-reposit…
Browse files Browse the repository at this point in the history
…ories

add argument alias for repositories
  • Loading branch information
DanielBadura authored Dec 20, 2021
2 parents e1cb3c6 + e78ec07 commit d2c2b99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DependencyInjection/PatchlevelEventSourcingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
use Patchlevel\EventSourcing\Projection\ProjectionListener;
use Patchlevel\EventSourcing\Projection\ProjectionRepository;
use Patchlevel\EventSourcing\Repository\DefaultRepository;
use Patchlevel\EventSourcing\Repository\Repository;
use Patchlevel\EventSourcing\Repository\SnapshotRepository;
use Patchlevel\EventSourcing\Schema\DoctrineSchemaManager;
use Patchlevel\EventSourcing\Schema\MigrationSchemaProvider;
Expand Down Expand Up @@ -270,6 +271,8 @@ private function configureAggregates(array $config, ContainerBuilder $container)
])
->setPublic(true);
}

$container->registerAliasForArgument($id, Repository::class, $aggregateName . 'Repository');
}
}

Expand Down

0 comments on commit d2c2b99

Please sign in to comment.