Skip to content

Commit

Permalink
Reinstanted message legacy client as used in Laravel notification pro…
Browse files Browse the repository at this point in the history
…vider (#314)
  • Loading branch information
SecondeJK committed Apr 26, 2022
1 parent 8ffaa3e commit 4ac4a0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
use Vonage\Verify\Verification;
use Vonage\Voice\ClientFactory as VoiceClientFactory;
use Vonage\Logger\{LoggerAwareInterface, LoggerTrait};
use Vonage\Message\Client as MessageClient;

use function array_key_exists;
use function array_merge;
Expand All @@ -74,6 +75,7 @@
* Vonage API Client, allows access to the API from PHP.
*
* @method Account\Client account()
* @method Message\Client message()
* @method Application\Client applications()
* @method Conversion\Client conversion()
* @method Insights\Client insights()
Expand Down Expand Up @@ -195,6 +197,8 @@ public function __construct(CredentialsInterface $credentials, $options = [], ?C
$this->setFactory(
new MapFactory(
[
// Legacy namespace (used by Laravel, needs to be moved over in future
'message' => MessageClient::class,
// Registered Services by name
'account' => ClientFactory::class,
'applications' => ApplicationClientFactory::class,
Expand Down

0 comments on commit 4ac4a0c

Please sign in to comment.