| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function register() |
||
| 14 | { |
||
| 15 | $config = [ |
||
| 16 | 'from_phone_number_id' => $this->app->make('config')->get('services.whatsapp.from-phone-number-id'), |
||
| 17 | 'access_token' => $this->app->make('config')->get('services.whatsapp.token'), |
||
| 18 | 'graph_version' => $this->app->make('config')->get('services.whatsapp.graph_version', WhatsAppCloudApi::DEFAULT_GRAPH_VERSION), |
||
| 19 | 'timeout' => $this->app->make('config')->get('services.whatsapp.timeout'), |
||
| 20 | ]; |
||
| 21 | |||
| 22 | $this->app->bind(WhatsAppCloudApi::class, static fn () => new WhatsAppCloudApi($config)); |
||
| 23 | } |
||
| 25 |