Show that the constructor is deprecated (#347)

This commit is contained in:
Tobias Nyholm 2017-05-16 14:51:25 +02:00 committed by GitHub
parent d504472206
commit 91f96bad3e

View File

@ -67,8 +67,10 @@ class Mailgun
* @param string $apiEndpoint * @param string $apiEndpoint
* @param Hydrator|null $hydrator * @param Hydrator|null $hydrator
* @param RequestBuilder|null $requestBuilder * @param RequestBuilder|null $requestBuilder
*
* @internal Use Mailgun::configure or Mailgun::create instead.
*/ */
public function __construct( public /* private */ function __construct(
$apiKey = null, /* Deprecated, will be removed in 3.0 */ $apiKey = null, /* Deprecated, will be removed in 3.0 */
HttpClient $httpClient = null, HttpClient $httpClient = null,
$apiEndpoint = 'api.mailgun.net', /* Deprecated, will be removed in 3.0 */ $apiEndpoint = 'api.mailgun.net', /* Deprecated, will be removed in 3.0 */