From 16d0a04014988b3001bca951e2de76d5d673ac94 Mon Sep 17 00:00:00 2001 From: "Tonin R. Bolzan" Date: Mon, 16 Sep 2019 09:42:13 -0300 Subject: [PATCH] Update Examples Method `::configure` replaced by a constructor --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c98aefe..e74f9d6 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ use Mailgun\Hydrator\ArrayHydrator; $configurator = new HttpClientConfigurator(); $configurator->setApiKey('key-example'); -$mg = Mailgun::configure($configurator, new ArrayHydrator()); +$mg = new Mailgun($configurator, new ArrayHydrator()); $data = $mg->domains()->show('example.com'); foreach ($data['receiving_dns_records'] as $record) { @@ -127,7 +127,7 @@ For example, the bin id in this URL (http://bin.mailgun.net/aecf68de) is `aecf68 $configurator = new HttpClientConfigurator(); $configurator->setEndpoint('http://bin.mailgun.net/aecf68de'); $configurator->setDebug(true); -$mg = Mailgun::configure($configurator); +$mg = new Mailgun($configurator); # Now, compose and send your message. $mg->messages()->send('example.com', [