@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $this->supports( |
26 | 26 | StorageType::OUTBOX(), |
27 | - function (Settings $s) { |
|
27 | + function(Settings $s) { |
|
28 | 28 | FeatureSettingsExtensions::enableFeatureByDefault( |
29 | 29 | Doctrine2OutboxPersistenceFeature::class, |
30 | 30 | $s |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $this->dependsOn(OutboxFeature::class); |
29 | 29 | $this->registerDefault( |
30 | - function (Settings $settings) { |
|
30 | + function(Settings $settings) { |
|
31 | 31 | $settings->setDefault(Doctrine2KnownSettingsEnum::OUTBOX_MESSAGES_TABLE_NAME, 'psb_outbox_messages'); |
32 | 32 | $settings->setDefault(Doctrine2KnownSettingsEnum::OUTBOX_ENDPOINTS_TABLE_NAME, 'psb_outbox_endpoints'); |
33 | 33 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | $builder->defineSingleton( |
51 | 51 | OutboxPersister::class, |
52 | - function () use ($builder, $settings) { |
|
52 | + function() use ($builder, $settings) { |
|
53 | 53 | return new OutboxPersister( |
54 | 54 | $builder->build(Connection::class), |
55 | 55 | $settings->get(Doctrine2KnownSettingsEnum::OUTBOX_MESSAGES_TABLE_NAME), |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | $builder->defineSingleton( |
62 | 62 | OutboxStorageInterface::class, |
63 | - function () use ($builder, $settings) { |
|
63 | + function() use ($builder, $settings) { |
|
64 | 64 | return new Doctrine2OutboxStorage( |
65 | 65 | $builder->build(OutboxPersister::class), |
66 | 66 | new OutboxMessageConverter(), |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | ); |
71 | 71 | |
72 | 72 | $this->registerStartupTask( |
73 | - function () use ($builder, $settings) { |
|
73 | + function() use ($builder, $settings) { |
|
74 | 74 | return new EndpointIdLoaderFeatureStartupTask( |
75 | 75 | $builder->build(OutboxPersister::class), |
76 | 76 | $settings, |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ); |
81 | 81 | |
82 | 82 | $this->registerStartupTask( |
83 | - function () use ($builder, $settings) { |
|
83 | + function() use ($builder, $settings) { |
|
84 | 84 | return new OutboxCleanerFeatureStartupTask( |
85 | 85 | $builder->build(OutboxPersister::class), |
86 | 86 | new \DateTime('now', new \DateTimeZone('UTC')), |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | ); |
91 | 91 | |
92 | 92 | $this->registerInstallTask( |
93 | - function () use ($builder, $settings) { |
|
93 | + function() use ($builder, $settings) { |
|
94 | 94 | return new OutboxTablesCreatorFeatureInstallTask( |
95 | 95 | new SingleDatabaseSynchronizer($builder->build(Connection::class)), |
96 | 96 | new OutboxEndpointSchemaProvider(), |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $outboxRecord['is_dispatched'] = 0; |
82 | 82 | |
83 | 83 | $this->connection->transactional( |
84 | - function (Connection $connection) use ($outboxRecord) { |
|
84 | + function(Connection $connection) use ($outboxRecord) { |
|
85 | 85 | $connection->insert($this->messagesTableName, $outboxRecord); |
86 | 86 | } |
87 | 87 | ); |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | { |
200 | 200 | $endpointId = 0; |
201 | 201 | $this->connection->transactional( |
202 | - function (Connection $connection) use ($endpointName, &$endpointId) { |
|
202 | + function(Connection $connection) use ($endpointName, &$endpointId) { |
|
203 | 203 | $lookupHash = md5($endpointName); |
204 | 204 | $endpointRecord = $connection->executeQuery( |
205 | 205 | "SELECT * FROM {$this->endpointsTableName} WHERE lookup_hash = ?", |