EventServiceProvider.php 731 Bytes
Newer Older
Graham Campbell committed
1 2 3
<?php

namespace App\Providers;
4

5
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
Taylor Otwell committed
6
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
7

Taylor Otwell committed
8 9 10 11 12 13 14 15 16 17 18 19
class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'App\Events\SomeEvent' => [
            'App\Listeners\EventListener',
        ],
    ];
20

Taylor Otwell committed
21 22 23 24 25 26 27 28 29
    /**
     * Register any other events for your application.
     *
     * @param  \Illuminate\Contracts\Events\Dispatcher  $events
     * @return void
     */
    public function boot(DispatcherContract $events)
    {
        parent::boot($events);
Taylor Otwell committed
30

Taylor Otwell committed
31 32
        //
    }
33
}