@@ -40,12 +40,12 @@ discard block |
||
| 40 | 40 | $app->bindInjector(StorageConfig::class, ConfiguratorInterface::class); |
| 41 | 41 | |
| 42 | 42 | $app->bindSingleton(UriResolverInterface::class, $this->uriResolverRegistrar()); |
| 43 | - $app->bindSingleton(UriResolver::class, static function (UriResolverInterface $resolver) { |
|
| 43 | + $app->bindSingleton(UriResolver::class, static function (UriResolverInterface $resolver){ |
|
| 44 | 44 | return $resolver; |
| 45 | 45 | }); |
| 46 | 46 | |
| 47 | 47 | $app->bindSingleton(StorageInterface::class, $this->storageRegistrar()); |
| 48 | - $app->bindSingleton(Storage::class, static function (StorageInterface $storage) { |
|
| 48 | + $app->bindSingleton(Storage::class, static function (StorageInterface $storage){ |
|
| 49 | 49 | return $storage; |
| 50 | 50 | }); |
| 51 | 51 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | private function storageRegistrar(): \Closure |
| 57 | 57 | { |
| 58 | - return static function (StorageConfig $config, UriParserInterface $parser) { |
|
| 58 | + return static function (StorageConfig $config, UriParserInterface $parser){ |
|
| 59 | 59 | return new Storage($config, $parser); |
| 60 | 60 | }; |
| 61 | 61 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | private function uriResolverRegistrar(): \Closure |
| 67 | 67 | { |
| 68 | - return static function (StorageConfig $config, UriParserInterface $parser) { |
|
| 68 | + return static function (StorageConfig $config, UriParserInterface $parser){ |
|
| 69 | 69 | return new UriResolver($config, $parser); |
| 70 | 70 | }; |
| 71 | 71 | } |
@@ -40,12 +40,14 @@ discard block |
||
| 40 | 40 | $app->bindInjector(StorageConfig::class, ConfiguratorInterface::class); |
| 41 | 41 | |
| 42 | 42 | $app->bindSingleton(UriResolverInterface::class, $this->uriResolverRegistrar()); |
| 43 | - $app->bindSingleton(UriResolver::class, static function (UriResolverInterface $resolver) { |
|
| 43 | + $app->bindSingleton(UriResolver::class, static function (UriResolverInterface $resolver) |
|
| 44 | + { |
|
| 44 | 45 | return $resolver; |
| 45 | 46 | }); |
| 46 | 47 | |
| 47 | 48 | $app->bindSingleton(StorageInterface::class, $this->storageRegistrar()); |
| 48 | - $app->bindSingleton(Storage::class, static function (StorageInterface $storage) { |
|
| 49 | + $app->bindSingleton(Storage::class, static function (StorageInterface $storage) |
|
| 50 | + { |
|
| 49 | 51 | return $storage; |
| 50 | 52 | }); |
| 51 | 53 | } |
@@ -55,7 +57,8 @@ discard block |
||
| 55 | 57 | */ |
| 56 | 58 | private function storageRegistrar(): \Closure |
| 57 | 59 | { |
| 58 | - return static function (StorageConfig $config, UriParserInterface $parser) { |
|
| 60 | + return static function (StorageConfig $config, UriParserInterface $parser) |
|
| 61 | + { |
|
| 59 | 62 | return new Storage($config, $parser); |
| 60 | 63 | }; |
| 61 | 64 | } |
@@ -65,7 +68,8 @@ discard block |
||
| 65 | 68 | */ |
| 66 | 69 | private function uriResolverRegistrar(): \Closure |
| 67 | 70 | { |
| 68 | - return static function (StorageConfig $config, UriParserInterface $parser) { |
|
| 71 | + return static function (StorageConfig $config, UriParserInterface $parser) |
|
| 72 | + { |
|
| 69 | 73 | return new UriResolver($config, $parser); |
| 70 | 74 | }; |
| 71 | 75 | } |