mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 00:25:37 +03:00
Fixed typo in ArrayHydrator documentation (#363)
ArrayHydrator was spelt wrong causing the example not to work
This commit is contained in:
parent
dd591edb3c
commit
b16259c808
@ -92,12 +92,12 @@ If you rather be working with array then object you can inject the `ArrayHydrato
|
|||||||
to the Mailgun class.
|
to the Mailgun class.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
use Mailgun\Hydrator\ArrayHydator;
|
use Mailgun\Hydrator\ArrayHydrator;
|
||||||
|
|
||||||
$configurator = new HttpClientConfigurator();
|
$configurator = new HttpClientConfigurator();
|
||||||
$configurator->setApiKey('key-example');
|
$configurator->setApiKey('key-example');
|
||||||
|
|
||||||
$mg = Mailgun::configure($configurator, new ArrayHydator());
|
$mg = Mailgun::configure($configurator, new ArrayHydrator());
|
||||||
$data = $mg->domains()->show('example.com');
|
$data = $mg->domains()->show('example.com');
|
||||||
|
|
||||||
foreach ($data['receiving_dns_records'] as $record) {
|
foreach ($data['receiving_dns_records'] as $record) {
|
||||||
|
Loading…
Reference in New Issue
Block a user