equal
deleted
inserted
replaced
1 <?php namespace App\Providers; |
1 <?php |
|
2 |
|
3 namespace CorpusParole\Providers; |
2 |
4 |
3 use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; |
5 use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; |
4 use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |
6 use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |
5 |
7 |
6 class EventServiceProvider extends ServiceProvider { |
8 class EventServiceProvider extends ServiceProvider |
|
9 { |
|
10 /** |
|
11 * The event handler mappings for the application. |
|
12 * |
|
13 * @var array |
|
14 */ |
|
15 protected $listen = [ |
|
16 'event.name' => [ |
|
17 'EventListener', |
|
18 ], |
|
19 ]; |
7 |
20 |
8 /** |
21 /** |
9 * The event handler mappings for the application. |
22 * Register any other events for your application. |
10 * |
23 * |
11 * @var array |
24 * @param \Illuminate\Contracts\Events\Dispatcher $events |
12 */ |
25 */ |
13 protected $listen = [ |
26 public function boot(DispatcherContract $events) |
14 'event.name' => [ |
27 { |
15 'EventListener', |
28 parent::boot($events); |
16 ], |
|
17 ]; |
|
18 |
29 |
19 /** |
30 // |
20 * Register any other events for your application. |
31 } |
21 * |
|
22 * @param \Illuminate\Contracts\Events\Dispatcher $events |
|
23 * @return void |
|
24 */ |
|
25 public function boot(DispatcherContract $events) |
|
26 { |
|
27 parent::boot($events); |
|
28 |
|
29 // |
|
30 } |
|
31 |
|
32 } |
32 } |