@@ -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 | |
@@ -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); |
@@ -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 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected function registerCacheFacade(Container $container): CacheSymfonyServiceProvider |
| 31 | 31 | { |
| 32 | - $container->offsetSet(CacheConstants::FACADE, static function (Container $container) { |
|
| 32 | + $container->offsetSet(CacheConstants::FACADE, static function(Container $container) { |
|
| 33 | 33 | $cacheSymfonyFactory = new CacheSymfonyFactory( |
| 34 | 34 | $container->offsetGet(ConfigConstants::FACADE) |
| 35 | 35 | ); |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function registerConfigFacade(Container $container): ConfigServiceProvider |
| 28 | 28 | { |
| 29 | - $container->offsetSet(ConfigConstants::FACADE, static function (Container $container) { |
|
| 29 | + $container->offsetSet(ConfigConstants::FACADE, static function(Container $container) { |
|
| 30 | 30 | $appDir = $container->offsetGet('app_dir'); |
| 31 | 31 | $environment = $container->offsetGet('environment'); |
| 32 | 32 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | protected function registerConsoleFacade(Container $container): ConsoleServiceProvider |
| 26 | 26 | { |
| 27 | - $container->offsetSet(ConsoleConstants::FACADE, static function () { |
|
| 27 | + $container->offsetSet(ConsoleConstants::FACADE, static function() { |
|
| 28 | 28 | return new ConsoleFacade(new ConsoleFactory()); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | $container->extend( |
| 36 | 36 | EventConstants::CONTAINER_KEY_DEFAULT_EVENT_ERROR_HANDLERS, |
| 37 | - static function (array $defaultEventErrorHandlers, Container $container) { |
|
| 37 | + static function(array $defaultEventErrorHandlers, Container $container) { |
|
| 38 | 38 | $defaultEventErrorHandlers[] = new CacheEventErrorHandler( |
| 39 | 39 | $container->offsetGet(CacheConstants::FACADE), |
| 40 | 40 | $container->offsetGet(SerializerConstants::FACADE) |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | protected function registerMessageFactory(Container $container): QueueServiceProvider |
| 31 | 31 | { |
| 32 | - $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_FACTORY, static function () { |
|
| 32 | + $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_FACTORY, static function() { |
|
| 33 | 33 | return new MessageFactory(); |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | protected function registerMessageMapper(Container $container): QueueServiceProvider |
| 45 | 45 | { |
| 46 | - $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_MAPPER, static function (Container $container) { |
|
| 46 | + $container->offsetSet(QueueConstants::CONTAINER_KEY_MESSAGE_MAPPER, static function(Container $container) { |
|
| 47 | 47 | return new MessageMapper( |
| 48 | 48 | $container->offsetGet(SerializerConstants::FACADE) |
| 49 | 49 | ); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | protected function registerDestinationFactory(Container $container): QueueServiceProvider |
| 56 | 56 | { |
| 57 | - $container->offsetSet(QueueConstants::CONTAINER_KEY_DESTINATION_FACTORY, static function () { |
|
| 57 | + $container->offsetSet(QueueConstants::CONTAINER_KEY_DESTINATION_FACTORY, static function() { |
|
| 58 | 58 | return new DestinationFactory(); |
| 59 | 59 | }); |
| 60 | 60 | |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | try { |
| 103 | 103 | $result = $this->executeLockablePart($eventName, $listenerIdentifier); |
| 104 | 104 | } catch (Throwable $e) { |
| 105 | - $this->logFacade->error((string)$e); |
|
| 105 | + $this->logFacade->error((string) $e); |
|
| 106 | 106 | } finally { |
| 107 | 107 | $this->release(); |
| 108 | 108 | } |