File tree Expand file tree Collapse file tree 11 files changed +25
-30
lines changed Expand file tree Collapse file tree 11 files changed +25
-30
lines changed Original file line number Diff line number Diff line change 88use Patchlevel \EventSourcing \Metadata \AggregateRoot \AttributeAggregateRootRegistryFactory ;
99use Psr \Container \ContainerInterface ;
1010
11- use function assert ;
12-
1311/**
1412 * @psalm-type Config = array{
1513 * paths: list<string>,
@@ -21,7 +19,6 @@ final class AggregateRootRegistryFactory extends Factory
2119 protected function createWithConfig (ContainerInterface $ container ): AggregateRootRegistry
2220 {
2321 $ config = $ this ->retrieveConfig ($ container , 'aggregate ' );
24- assert ($ config instanceof Config);
2522
2623 $ aggregateRootRegistry = new AggregateRootRegistry ($ config ['classes ' ]);
2724
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Aggregate ;
5+ namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Aggregate ;
66
77use Patchlevel \EventSourcing \Aggregate \AggregateRoot ;
88use Patchlevel \EventSourcing \Attribute \Aggregate ;
99use Patchlevel \EventSourcing \Attribute \Apply ;
1010use Patchlevel \EventSourcing \Attribute \Normalize ;
1111use Patchlevel \EventSourcing \Attribute \Snapshot ;
12- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Events \ProfileCreated ;
13- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Normalizer \ProfileIdNormalizer ;
14- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ ProfileId ;
12+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Events \ProfileCreated ;
13+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Normalizer \ProfileIdNormalizer ;
14+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \ProfileId ;
1515
1616#[Aggregate('profile ' )]
1717#[Snapshot('default ' , 100 )]
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \ Default ;
5+ namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration ;
66
77use Patchlevel \EventSourcingPsrContainer \ConfigBuilder ;
88use Patchlevel \EventSourcingPsrContainer \DefaultContainer ;
9- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Aggregate \Profile ;
10- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Processor \SendEmailProcessor ;
11- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Projection \ProfileProjection ;
9+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Aggregate \Profile ;
10+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Processor \SendEmailProcessor ;
11+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Projection \ProfileProjection ;
1212use PHPUnit \Framework \TestCase ;
1313
1414/**
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Events ;
5+ namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Events ;
66
77use Patchlevel \EventSourcing \Attribute \Event ;
88use Patchlevel \EventSourcing \Attribute \Normalize ;
9- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Normalizer \ProfileIdNormalizer ;
10- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ ProfileId ;
9+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Normalizer \ProfileIdNormalizer ;
10+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \ProfileId ;
1111
1212#[Event('profile.created ' )]
1313final class ProfileCreated
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \ Default ;
5+ namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration ;
66
77use Laminas \ServiceManager \ServiceManager ;
88use Patchlevel \EventSourcing \Repository \RepositoryManager ;
1111use Patchlevel \EventSourcingPsrContainer \Factory \ConnectionFactory ;
1212use Patchlevel \EventSourcingPsrContainer \Factory \RepositoryManagerFactory ;
1313use Patchlevel \EventSourcingPsrContainer \Factory \SchemaDirectorFactory ;
14- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Aggregate \Profile ;
15- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Processor \SendEmailProcessor ;
16- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Projection \ProfileProjection ;
14+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Aggregate \Profile ;
15+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Processor \SendEmailProcessor ;
16+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Projection \ProfileProjection ;
1717use PHPUnit \Framework \TestCase ;
1818use Psr \Container \ContainerInterface ;
1919
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ MessageDecorator ;
5+ namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \MessageDecorator ;
66
77use Patchlevel \EventSourcing \EventBus \Decorator \MessageDecorator ;
88use Patchlevel \EventSourcing \EventBus \Message ;
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Normalizer ;
5+ namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Normalizer ;
66
77use InvalidArgumentException ;
88use Patchlevel \EventSourcing \Serializer \Normalizer \Normalizer ;
9- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ProfileId ;
10-
9+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \ProfileId ;
1110use function is_string ;
1211
1312final class ProfileIdNormalizer implements Normalizer
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Processor ;
5+ namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Processor ;
66
77use Patchlevel \EventSourcing \EventBus \Listener ;
88use Patchlevel \EventSourcing \EventBus \Message ;
9- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Events \ProfileCreated ;
10- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ SendEmailMock ;
9+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Events \ProfileCreated ;
10+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \SendEmailMock ;
1111
1212final class SendEmailProcessor implements Listener
1313{
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \ Default ;
5+ namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration ;
66
77final class ProfileId
88{
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \ Projection ;
5+ namespace Patchlevel \EventSourcingPsrContainer \Tests \Integration \Projection ;
66
77use Doctrine \DBAL \Connection ;
88use Doctrine \DBAL \Schema \Table ;
1111use Patchlevel \EventSourcing \Attribute \Handle ;
1212use Patchlevel \EventSourcing \EventBus \Message ;
1313use Patchlevel \EventSourcing \Projection \Projector \Projector ;
14- use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Default \Events \ProfileCreated ;
15-
14+ use Patchlevel \EventSourcingPsrContainer \Tests \Integration \Events \ProfileCreated ;
1615use function assert ;
1716
1817final class ProfileProjection implements Projector
You can’t perform that action at this time.
0 commit comments