Page MenuHomeDevCentral

EventServiceProvider.php
No OneTemporary

EventServiceProvider.php

<?php
namespace Nasqueron\Notifications\Providers;
use Nasqueron\Notifications\Events\DockerHubPayloadEvent;
use Nasqueron\Notifications\Events\GitHubPayloadEvent;
use Nasqueron\Notifications\Events\JenkinsPayloadEvent;
use Nasqueron\Notifications\Events\NotificationEvent;
use Nasqueron\Notifications\Events\PhabricatorPayloadEvent;
use Nasqueron\Notifications\Listeners\AMQPEventListener;
use Nasqueron\Notifications\Listeners\DockerHubListener;
use Nasqueron\Notifications\Listeners\LastPayloadSaver;
use Nasqueron\Notifications\Listeners\NotificationListener;
use Nasqueron\Notifications\Listeners\PhabricatorListener;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider {
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
DockerHubPayloadEvent::class => [
LastPayloadSaver::class,
NotificationListener::class,
],
GitHubPayloadEvent::class => [
DockerHubListener::class,
LastPayloadSaver::class,
NotificationListener::class,
PhabricatorListener::class,
],
JenkinsPayloadEvent::class => [
LastPayloadSaver::class,
NotificationListener::class,
],
NotificationEvent::class => [
AMQPEventListener::class,
],
PhabricatorPayloadEvent::class => [
LastPayloadSaver::class,
NotificationListener::class,
],
];
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 11, 20:08 (8 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3063911
Default Alt Text
EventServiceProvider.php (1 KB)

Event Timeline