for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace LaravelZero\Framework\Commands\Component\Illuminate\Events;
use Illuminate\Support\ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event handler mappings for the application.
*
* @var array
*/
protected $listen = [];
* The subscriber classes to register.
protected $subscribe = [];
* Register the application's event listeners.
* @return void
public function boot()
$dispatcher = $this->app->make('events');
foreach ($this->listens() as $event => $listeners) {
foreach ($listeners as $listener) {
$dispatcher->listen($event, $listener);
}
foreach ($this->subscribe as $subscriber) {
$dispatcher->subscribe($subscriber);
* {@inheritdoc}
public function register()
//
* Get the events and handlers.
* @return array
public function listens()
return $this->listen;