Skip to content

Commit 4ac4a0c

Browse files
authored
Reinstanted message legacy client as used in Laravel notification provider (#314)
1 parent 8ffaa3e commit 4ac4a0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Client.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
use Vonage\Verify\Verification;
5757
use Vonage\Voice\ClientFactory as VoiceClientFactory;
5858
use Vonage\Logger\{LoggerAwareInterface, LoggerTrait};
59+
use Vonage\Message\Client as MessageClient;
5960

6061
use function array_key_exists;
6162
use function array_merge;
@@ -74,6 +75,7 @@
7475
* Vonage API Client, allows access to the API from PHP.
7576
*
7677
* @method Account\Client account()
78+
* @method Message\Client message()
7779
* @method Application\Client applications()
7880
* @method Conversion\Client conversion()
7981
* @method Insights\Client insights()
@@ -195,6 +197,8 @@ public function __construct(CredentialsInterface $credentials, $options = [], ?C
195197
$this->setFactory(
196198
new MapFactory(
197199
[
200+
// Legacy namespace (used by Laravel, needs to be moved over in future
201+
'message' => MessageClient::class,
198202
// Registered Services by name
199203
'account' => ClientFactory::class,
200204
'applications' => ApplicationClientFactory::class,

0 commit comments

Comments
 (0)