@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | $self = $this; |
| 35 | 35 | |
| 36 | - $container->offsetSet('serializer', function () use ($self) { |
|
| 36 | + $container->offsetSet('serializer', function() use ($self) { |
|
| 37 | 37 | return new Serializer( |
| 38 | 38 | $self->createSymfonySerializer() |
| 39 | 39 | ); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | $self = $this; |
| 22 | 22 | |
| 23 | - $pimple->offsetSet('queue_client', function (Container $container) use ($self) { |
|
| 23 | + $pimple->offsetSet('queue_client', function(Container $container) use ($self) { |
|
| 24 | 24 | return $self->createClient( |
| 25 | 25 | $container->offsetGet('config'), |
| 26 | 26 | $container->offsetGet('message_mapper') |
@@ -17,11 +17,11 @@ |
||
| 17 | 17 | { |
| 18 | 18 | $self = $this; |
| 19 | 19 | |
| 20 | - $pimple->offsetSet('message_factory', function () use ($self) { |
|
| 20 | + $pimple->offsetSet('message_factory', function() use ($self) { |
|
| 21 | 21 | return $self->createMessageFactory(); |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - $pimple->offsetSet('message_mapper', function (Container $container) use ($self) { |
|
| 24 | + $pimple->offsetSet('message_mapper', function(Container $container) use ($self) { |
|
| 25 | 25 | return $self->createMessageMapper( |
| 26 | 26 | $container->offsetGet('serializer') |
| 27 | 27 | ); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | $self = $this; |
| 22 | 22 | |
| 23 | - $pimple->offsetSet('queue_client', function (Container $container) use ($self) { |
|
| 23 | + $pimple->offsetSet('queue_client', function(Container $container) use ($self) { |
|
| 24 | 24 | return $self->createClient( |
| 25 | 25 | $container->offsetGet('config'), |
| 26 | 26 | $container->offsetGet('message_mapper') |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | 'root_dir' => $this->rootDir, |
| 70 | 70 | 'app_dir' => $this->appDir, |
| 71 | 71 | 'environment' => $this->environment, |
| 72 | - 'commands' => function () { |
|
| 72 | + 'commands' => function() { |
|
| 73 | 73 | return []; |
| 74 | 74 | } |
| 75 | 75 | ]); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function createValidatorFactory(Container $container): ServiceProviderInterface |
| 26 | 26 | { |
| 27 | - $container->offsetSet('json_schema_validator_factory', function () { |
|
| 27 | + $container->offsetSet('json_schema_validator_factory', function() { |
|
| 28 | 28 | return new ValidatorFactory(); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function createProcessFactory(Container $container): ServiceProviderInterface |
| 26 | 26 | { |
| 27 | - $container->offsetSet('process_factory', function () { |
|
| 27 | + $container->offsetSet('process_factory', function() { |
|
| 28 | 28 | return new ProcessFactory(); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | protected function createScheduler(Container $container): ServiceProviderInterface |
| 28 | 28 | { |
| 29 | - $container->offsetSet('scheduler', function () { |
|
| 29 | + $container->offsetSet('scheduler', function() { |
|
| 30 | 30 | return new Scheduler(); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | protected function createCommands(Container $container): ServiceProviderInterface |
| 42 | 42 | { |
| 43 | - $container->extend('commands', function (array $commands, Container $container) { |
|
| 43 | + $container->extend('commands', function(array $commands, Container $container) { |
|
| 44 | 44 | $commands[] = new RunSchedulerCommand( |
| 45 | 45 | $container->offsetGet('scheduler'), |
| 46 | 46 | $container->offsetGet('lock_factory'), |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | $self = $this; |
| 33 | 33 | |
| 34 | - $container->offsetSet('logger', function (Container $container) use ($self) { |
|
| 34 | + $container->offsetSet('logger', function(Container $container) use ($self) { |
|
| 35 | 35 | $logger = new Logger('jellyfish'); |
| 36 | 36 | |
| 37 | 37 | $logger->pushHandler($self->createStreamHandler($container)); |