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

Commit

Permalink
Fixed the issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
breart committed Feb 12, 2018
1 parent 492b395 commit 1a66456
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ There are two ways to define webhook listeners:
2\. Define listeners using the `Webhook` facade, for example:

``` php
Webhook::listen('jira:issue_created', function(\Illuminate\Http\Request $request, \AtlassianConnectCore\Models\Tenant $tenant) {
Webhook::listen('jira:issue_created', function(\AtlassianConnectCore\Models\Tenant $tenant, \Illuminate\Http\Request $request) {
// ...
});
```
Expand Down Expand Up @@ -275,12 +275,12 @@ class Created
/**
* Handle the incoming webhook
*
* @param \Illuminate\Http\Request $request
* @param \AtlassianConnectCore\Models\Tenant $tenant
* @param \Illuminate\Http\Request $request
*
* @return void
*/
public function handle(Request $request, Tenant $tenant)
public function handle(Tenant $tenant, Request $request)
{
// ...
}
Expand All @@ -292,8 +292,8 @@ All event listeners are resolved via the Laravel service container, so dependenc

The handling method have the following parameters:

1. `$request` - Request instance with Webhooks payload.
2. `$tenant` - Authenticated Tenant model instance.
1. `$tenant` - Authenticated Tenant model instance.
2. `$request` - Request instance with Webhooks payload.

### Console commands

Expand Down

0 comments on commit 1a66456

Please sign in to comment.