| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function register(): void |
||
| 19 | { |
||
| 20 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'docker-registry'); |
||
| 21 | |||
| 22 | $this->app->singleton(DockerRegistryClientInterface::class, function (Application $app) { |
||
| 23 | $config = $app->config->get('docker-registry'); |
||
| 24 | |||
| 25 | return new $config['service']($config['url'], $config['port'], $config['version']); |
||
| 26 | }); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |