@@ -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 | ]); |
@@ -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)); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $self = $this; |
| 18 | 18 | |
| 19 | - $pimple->offsetSet('config', function (Container $container) use ($self) { |
|
| 19 | + $pimple->offsetSet('config', function(Container $container) use ($self) { |
|
| 20 | 20 | return $self->createConfig($container); |
| 21 | 21 | }); |
| 22 | 22 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $self = $this; |
| 31 | 31 | |
| 32 | - $container->offsetSet('lock_factory', function (Container $container) use ($self) { |
|
| 32 | + $container->offsetSet('lock_factory', function(Container $container) use ($self) { |
|
| 33 | 33 | return new LockFactory( |
| 34 | 34 | $self->createSymfonyLockFactory($container), |
| 35 | 35 | $self->createLockIdentifierGenerator() |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | protected function registerPropertyNameConverterStrategyProvider(Container $container): SerializerServiceProvider |
| 27 | 27 | { |
| 28 | - $container->offsetSet('serializer_property_name_converter_strategy_provider', function () { |
|
| 28 | + $container->offsetSet('serializer_property_name_converter_strategy_provider', function() { |
|
| 29 | 29 | return new PropertyNameConverterStrategyProvider(); |
| 30 | 30 | }); |
| 31 | 31 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | { |
| 35 | 35 | $self = $this; |
| 36 | 36 | |
| 37 | - $container->offsetSet('serializer', function (Container $container) use ($self) { |
|
| 37 | + $container->offsetSet('serializer', function(Container $container) use ($self) { |
|
| 38 | 38 | return new Serializer( |
| 39 | 39 | $self->createSymfonySerializer($container) |
| 40 | 40 | ); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | protected function registerEventFactory(Container $container): EventServiceProvider |
| 139 | 139 | { |
| 140 | - $container->offsetSet('event_factory', function () { |
|
| 140 | + $container->offsetSet('event_factory', function() { |
|
| 141 | 141 | return new EventFactory(); |
| 142 | 142 | }); |
| 143 | 143 | |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | { |
| 154 | 154 | $self = $this; |
| 155 | 155 | |
| 156 | - $container->offsetSet('event_dispatcher', function (Container $container) use ($self) { |
|
| 156 | + $container->offsetSet('event_dispatcher', function(Container $container) use ($self) { |
|
| 157 | 157 | return new EventDispatcher( |
| 158 | 158 | new EventListenerProvider(), |
| 159 | 159 | $self->createEventQueueProducer($container) |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | { |
| 173 | 173 | $self = $this; |
| 174 | 174 | |
| 175 | - $container->extend('commands', function (array $commands, Container $container) use ($self) { |
|
| 175 | + $container->extend('commands', function(array $commands, Container $container) use ($self) { |
|
| 176 | 176 | $commands[] = new EventQueueConsumeCommand( |
| 177 | 177 | $container->offsetGet('event_dispatcher')->getEventListenerProvider(), |
| 178 | 178 | $self->createEventQueueConsumer($container), |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | protected function registerFilesystem(Container $container): FilesystemSymfonyServiceProvider |
| 27 | 27 | { |
| 28 | - $container->offsetSet('filesystem', function () { |
|
| 28 | + $container->offsetSet('filesystem', function() { |
|
| 29 | 29 | $symfonyFilesystem = new SymfonyFilesystem(); |
| 30 | 30 | |
| 31 | 31 | return new Filesystem($symfonyFilesystem); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | protected function registerRequest(Container $container): HttpServiceProvider |
| 39 | 39 | { |
| 40 | - $container->offsetSet('request', function () { |
|
| 40 | + $container->offsetSet('request', function() { |
|
| 41 | 41 | return ServerRequestFactory::fromGlobals(); |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | $self = $this; |
| 55 | 55 | |
| 56 | - $container->offsetSet('router', function () use ($self) { |
|
| 56 | + $container->offsetSet('router', function() use ($self) { |
|
| 57 | 57 | $router = new Router(); |
| 58 | 58 | |
| 59 | 59 | $router->setStrategy($self->createStrategy()); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | protected function registerEmitter(Container $container): HttpServiceProvider |
| 73 | 73 | { |
| 74 | - $container->offsetSet('emitter', function () { |
|
| 74 | + $container->offsetSet('emitter', function() { |
|
| 75 | 75 | return new SapiStreamEmitter(); |
| 76 | 76 | }); |
| 77 | 77 | |