diff --git a/src/Connector/Base.php b/src/Connector/Base.php index 29aa475..723b59b 100644 --- a/src/Connector/Base.php +++ b/src/Connector/Base.php @@ -3,7 +3,7 @@ namespace NSWDPC\Messaging\Mailgun\Connector; use Mailgun\Mailgun; -use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebhook; +use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebHook; use NSWDPC\Messaging\Mailgun\Services\Logger; use SilverStripe\Core\Config\Config; use SilverStripe\Core\Config\Configurable; @@ -165,7 +165,7 @@ public function getWebhookPreviousFilterVariable(): string */ public function getWebhooksEnabled(): bool { - return MailgunWebhook::config()->get('webhooks_enabled'); + return MailgunWebHook::config()->get('webhooks_enabled'); } /** diff --git a/src/Connector/Webhook.php b/src/Connector/Webhook.php index 500377e..031ce8c 100644 --- a/src/Connector/Webhook.php +++ b/src/Connector/Webhook.php @@ -2,7 +2,7 @@ namespace NSWDPC\Messaging\Mailgun\Connector; -use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebhook; +use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebHook; use NSWDPC\Messaging\Mailgun\MailgunEvent; use NSWDPC\Messaging\Mailgun\Log; use Mailgun\Mailgun; diff --git a/tests/WebhookTest.php b/tests/WebhookTest.php index ef29cec..0e0a74f 100644 --- a/tests/WebhookTest.php +++ b/tests/WebhookTest.php @@ -4,7 +4,7 @@ use NSWDPC\Messaging\Mailgun\Connector\Base; use NSWDPC\Messaging\Mailgun\Connector\Webhook; -use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebhook; +use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebHook; use NSWDPC\Messaging\Mailgun\Models\MailgunEvent; use SilverStripe\Dev\FunctionalTest; use SilverStripe\Core\Config\Config; @@ -38,7 +38,7 @@ public function setUp(): void Environment::setEnv('MAILGUN_WEBHOOK_FILTER_VARIABLE', $this->webhook_filter_variable); Environment::setEnv('MAILGUN_WEBHOOK_PREVIOUS_FILTER_VARIABLE', $this->webhook_previous_filter_variable); Environment::setEnv('MAILGUN_WEBHOOK_SIGNING_KEY', $this->webhook_signing_key); - Config::modify()->set(MailgunWebhook::class, 'webhooks_enabled', true); + Config::modify()->set(MailgunWebHook::class, 'webhooks_enabled', true); } protected function getTestDsn(): string