Skip to content

Commit 6d4c587

Browse files
committed
fix naming
1 parent 1e63f9d commit 6d4c587

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

src/Controllers/EasyWeChatController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class EasyWeChatController extends LaravelController
1717
*/
1818
protected $events = [
1919
'authorized' => Events\Authorized::class,
20-
'unauthorized' => Events\UnAuthorized::class,
20+
'unauthorized' => Events\Unauthorized::class,
2121
'updateauthorized' => Events\UpdateAuthorized::class,
2222
];
2323

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace Overtrue\LaravelWechat\Events\OpenPlatform;
4+
5+
use EasyWeChat\Support\Collection;
6+
use Illuminate\Queue\SerializesModels;
7+
8+
class Unauthorized
9+
{
10+
use SerializesModels;
11+
12+
public $message;
13+
14+
/**
15+
* Create a new event instance.
16+
*
17+
* @param \EasyWeChat\Support\Collection $message
18+
*/
19+
public function __construct(Collection $message)
20+
{
21+
$this->message = $message;
22+
}
23+
24+
/**
25+
* Get the channels the event should be broadcast on.
26+
*
27+
* @return array
28+
*/
29+
public function broadcastOn()
30+
{
31+
return [];
32+
}
33+
}

0 commit comments

Comments
 (0)