| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function register() |
||
| 25 | { |
||
| 26 | $this->mergeConfigFrom(__DIR__.'/../config/inetworx.php', 'inetworx'); |
||
| 27 | |||
| 28 | $this->app->bind(InetworxClient::class, function () { |
||
| 29 | return new InetworxClient( |
||
| 30 | config('inetworx.auth.credentials.auth_header.username'), |
||
| 31 | config('inetworx.auth.credentials.auth_header.password'), |
||
| 32 | config('inetworx.auth.credentials.api.username'), |
||
| 33 | config('inetworx.auth.credentials.api.password') |
||
| 34 | ); |
||
| 35 | }); |
||
| 36 | |||
| 37 | $this->app->alias(InetworxClient::class, 'inetworx-client'); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |