Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
Webhook: fixed namespace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
breart committed Jan 13, 2018
1 parent dcf9040 commit d60c7f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace AtlassianConnectCore;

use Illuminate\Events\Dispatcher;
use AtlassianConnectCore\Facades\Descriptor;

/**
* Class Webhook
Expand Down Expand Up @@ -40,7 +39,7 @@ public function __construct(Dispatcher $dispatcher)
public function listen(string $name, $listener)
{
// Define a webhook in the descriptor
Descriptor::webhook($name, $this->url($name));
\AtlassianConnectCore\Facades\Descriptor::webhook($name, $this->url($name));

// Register event listener
$this->dispatcher->listen($this->eventName($name), $listener);
Expand Down

0 comments on commit d60c7f4

Please sign in to comment.