Skip to content

Commit e5d8d61

Browse files
authored
Merge pull request #59 from prooph/projection_manager
Projection manager, Updates & Bugfixes
2 parents a1a64d2 + 0744095 commit e5d8d61

File tree

44 files changed

+1932
-4849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1932
-4849
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"suggest": {
3131
"psr/container": "^1.0 for usage of provided factories",
32-
"sandrokeil/interop-config": "For usage of provided factories",
32+
"sandrokeil/interop-config": "^2.0.1 for usage of provided factories",
3333
"ext-pdo_mysql": "For usage with MySQL",
3434
"ext-pdo_pgsql": "For usage with PostgreSQL"
3535
},

phpunit.xml.pdo_mysql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
<file>./src/PersistenceStrategy/PostgresAggregateStreamStrategy.php</file>
2323
<file>./src/PersistenceStrategy/PostgresSimpleStreamStrategy.php</file>
2424
<file>./src/PersistenceStrategy/PostgresSingleStreamStrategy.php</file>
25-
<file>./src/Projection/PostgresEventStoreProjection.php</file>
26-
<file>./src/Projection/PostgresEventStoreQuery.php</file>
27-
<file>./src/Projection/PostgresEventStoreReadModelProjection.php</file>
25+
<file>./src/Projection/PostgresProjectionManager.php</file>
2826
<file>./src/PostgresEventStore.php</file>
2927
</exclude>
3028
</whitelist>

phpunit.xml.pdo_pgsql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
<file>./src/PersistenceStrategy/MySqlAggregateStreamStrategy.php</file>
2323
<file>./src/PersistenceStrategy/MySqlSimpleStreamStrategy.php</file>
2424
<file>./src/PersistenceStrategy/MySqlSingleStreamStrategy.php</file>
25-
<file>./src/Projection/MySqlEventStoreProjection.php</file>
26-
<file>./src/Projection/MySqlEventStoreQuery.php</file>
27-
<file>./src/Projection/MySqlEventStoreReadModelProjection.php</file>
25+
<file>./src/Projection/MySqlProjectionManager.php</file>
2826
<file>./src/MySqlEventStore.php</file>
2927
</exclude>
3028
</whitelist>

src/Container/AbstractEventStoreFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ public function __invoke(ContainerInterface $container): EventStore
9595
$connection,
9696
$container->get($config['persistence_strategy']),
9797
$config['load_batch_size'],
98-
$config['event_streams_table'],
99-
$config['projections_table']
98+
$config['event_streams_table']
10099
);
101100

102101
if (! $config['wrap_action_event_emitter']) {

src/Container/MySqlEventStoreFactory.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@ protected function createActionEventEmitterEventStore(EventStore $eventStore): A
3333
ActionEventEmitterEventStore::EVENT_HAS_STREAM,
3434
ActionEventEmitterEventStore::EVENT_FETCH_STREAM_METADATA,
3535
ActionEventEmitterEventStore::EVENT_UPDATE_STREAM_METADATA,
36-
ActionEventEmitterEventStore::EVENT_DELETE_PROJECTION,
37-
ActionEventEmitterEventStore::EVENT_RESET_PROJECTION,
38-
ActionEventEmitterEventStore::EVENT_STOP_PROJECTION,
3936
ActionEventEmitterEventStore::EVENT_FETCH_STREAM_NAMES,
37+
ActionEventEmitterEventStore::EVENT_FETCH_STREAM_NAMES_REGEX,
4038
ActionEventEmitterEventStore::EVENT_FETCH_CATEGORY_NAMES,
41-
ActionEventEmitterEventStore::EVENT_FETCH_PROJECTION_NAMES,
39+
ActionEventEmitterEventStore::EVENT_FETCH_CATEGORY_NAMES_REGEX,
4240
])
4341
);
4442
}
@@ -84,7 +82,6 @@ public function defaultOptions(): iterable
8482
],
8583
'load_batch_size' => 1000,
8684
'event_streams_table' => 'event_streams',
87-
'projections_table' => 'projections',
8885
'message_factory' => FQCNMessageFactory::class,
8986
'wrap_action_event_emitter' => true,
9087
'metadata_enrichers' => [],

src/Container/PostgresEventStoreFactory.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ protected function createActionEventEmitterEventStore(EventStore $eventStore): A
3434
TransactionalActionEventEmitterEventStore::EVENT_HAS_STREAM,
3535
TransactionalActionEventEmitterEventStore::EVENT_FETCH_STREAM_METADATA,
3636
TransactionalActionEventEmitterEventStore::EVENT_UPDATE_STREAM_METADATA,
37-
TransactionalActionEventEmitterEventStore::EVENT_DELETE_PROJECTION,
38-
TransactionalActionEventEmitterEventStore::EVENT_RESET_PROJECTION,
39-
TransactionalActionEventEmitterEventStore::EVENT_STOP_PROJECTION,
4037
TransactionalActionEventEmitterEventStore::EVENT_FETCH_STREAM_NAMES,
38+
TransactionalActionEventEmitterEventStore::EVENT_FETCH_STREAM_NAMES_REGEX,
4139
TransactionalActionEventEmitterEventStore::EVENT_FETCH_CATEGORY_NAMES,
42-
TransactionalActionEventEmitterEventStore::EVENT_FETCH_PROJECTION_NAMES,
40+
TransactionalActionEventEmitterEventStore::EVENT_FETCH_CATEGORY_NAMES_REGEX,
4341
TransactionalActionEventEmitterEventStore::EVENT_BEGIN_TRANSACTION,
4442
TransactionalActionEventEmitterEventStore::EVENT_COMMIT,
4543
TransactionalActionEventEmitterEventStore::EVENT_ROLLBACK,
@@ -88,7 +86,6 @@ public function defaultOptions(): iterable
8886
],
8987
'load_batch_size' => 1000,
9088
'event_streams_table' => 'event_streams',
91-
'projections_table' => 'projections',
9289
'message_factory' => FQCNMessageFactory::class,
9390
'wrap_action_event_emitter' => true,
9491
'metadata_enrichers' => [],

0 commit comments

Comments
 (0)