@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | protected function registerUuidFacade(Container $container): UuidRamseyServiceProvider |
| 29 | 29 | { |
| 30 | - $container->offsetSet(UuidConstants::FACADE, static function () { |
|
| 30 | + $container->offsetSet(UuidConstants::FACADE, static function() { |
|
| 31 | 31 | return new UuidRamseyFacade(new UuidRamseyFactory()); |
| 32 | 32 | }); |
| 33 | 33 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | protected function registerEventFactory(Container $container): EventServiceProvider |
| 145 | 145 | { |
| 146 | - $container->offsetSet(EventConstants::CONTAINER_KEY_EVENT_FACTORY, static function (Container $container) { |
|
| 146 | + $container->offsetSet(EventConstants::CONTAINER_KEY_EVENT_FACTORY, static function(Container $container) { |
|
| 147 | 147 | return new EventFactory($container->offsetGet(UuidConstants::FACADE)); |
| 148 | 148 | }); |
| 149 | 149 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | $container->offsetSet( |
| 163 | 163 | EventConstants::CONTAINER_KEY_EVENT_DISPATCHER, |
| 164 | - static function (Container $container) use ($self) { |
|
| 164 | + static function(Container $container) use ($self) { |
|
| 165 | 165 | return new EventDispatcher( |
| 166 | 166 | new EventListenerProvider(), |
| 167 | 167 | $self->createEventQueueProducer($container) |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | { |
| 182 | 182 | $self = $this; |
| 183 | 183 | |
| 184 | - $container->extend('commands', static function (array $commands, Container $container) use ($self) { |
|
| 184 | + $container->extend('commands', static function(array $commands, Container $container) use ($self) { |
|
| 185 | 185 | $commands[] = new EventQueueConsumeCommand( |
| 186 | 186 | $container->offsetGet('event_dispatcher')->getEventListenerProvider(), |
| 187 | 187 | $self->createEventQueueConsumer($container), |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | */ |
| 207 | 207 | protected function registerDefaultEventErrorHandlers(Container $container): EventServiceProvider |
| 208 | 208 | { |
| 209 | - $container->offsetSet(EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, static function () { |
|
| 209 | + $container->offsetSet(EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, static function() { |
|
| 210 | 210 | return []; |
| 211 | 211 | }); |
| 212 | 212 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function registerFacade(Container $container): Container |
| 36 | 36 | { |
| 37 | - $container->offsetSet(HttpConstants::FACADE, static function () { |
|
| 37 | + $container->offsetSet(HttpConstants::FACADE, static function() { |
|
| 38 | 38 | $httpLeagueFactory = new HttpLeagueFactory(); |
| 39 | 39 | |
| 40 | 40 | return new HttpLeagueFacade($httpLeagueFactory); |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | protected function registerSchedulerFacade(Container $container): SchedulerServiceProvider |
| 31 | 31 | { |
| 32 | - $container->offsetSet(SchedulerConstants::FACADE, static function (Container $container) { |
|
| 32 | + $container->offsetSet(SchedulerConstants::FACADE, static function(Container $container) { |
|
| 33 | 33 | $schedulerFactory = new SchedulerFactory($container->offsetGet(ProcessConstants::FACADE)); |
| 34 | 34 | |
| 35 | 35 | return new SchedulerFacade($schedulerFactory); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | protected function registerCommands(Container $container): SchedulerServiceProvider |
| 47 | 47 | { |
| 48 | - $container->extend('commands', static function (array $commands, Container $container) { |
|
| 48 | + $container->extend('commands', static function(array $commands, Container $container) { |
|
| 49 | 49 | $commands[] = new RunSchedulerCommand( |
| 50 | 50 | $container->offsetGet(SchedulerConstants::FACADE), |
| 51 | 51 | $container->offsetGet('lock_factory'), |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | protected function registerProcessFacade(Container $container): ProcessSymfonyServiceProvider |
| 29 | 29 | { |
| 30 | - $container->offsetSet(ProcessConstants::FACADE, static function () { |
|
| 30 | + $container->offsetSet(ProcessConstants::FACADE, static function() { |
|
| 31 | 31 | return new ProcessSymfonyFacade(new ProcessSymfonyFactory()); |
| 32 | 32 | }); |
| 33 | 33 | |