Browse Source

Minor fixes to function calls

proxy_request
Rodrigo Gonzalez 2 years ago
parent
commit
71dfaeedab
  1. 3
      src/WebhooksController.php

3
src/WebhooksController.php

@ -8,7 +8,6 @@ use Appvise\AppStoreNotifications\Model\NotificationType;
use Appvise\AppStoreNotifications\Model\AppleNotification; use Appvise\AppStoreNotifications\Model\AppleNotification;
use Appvise\AppStoreNotifications\Exceptions\WebhookFailed; use Appvise\AppStoreNotifications\Exceptions\WebhookFailed;
use Appvise\AppStoreNotifications\Model\NotificationPayload; use Appvise\AppStoreNotifications\Model\NotificationPayload;
use Appvise\AppStoreNotifications\ProxyHelperFacade as AppStoreNotificationsProxyHelperFacade;
class WebhooksController class WebhooksController
{ {
@ -16,7 +15,7 @@ class WebhooksController
{ {
$proxy_host = config('appstore-server-notifications.proxy_host'); $proxy_host = config('appstore-server-notifications.proxy_host');
if (!empty($proxy_host)) { if (!empty($proxy_host)) {
ProxyHelperFacade::createFromRequest($request)->toHost($proxy_host); ProxyHelperFacade::CreateProxy($request)->toHost($proxy_host, '');
} }
$jobConfigKey = NotificationType::{$request->input('notification_type')}(); $jobConfigKey = NotificationType::{$request->input('notification_type')}();

Loading…
Cancel
Save