Demo entry 6682386

EventServiceProvider

   

Submitted by anonymous on Dec 08, 2017 at 09:24
Language: PHP. Code size: 978 Bytes.

<?php

namespace App\Providers;

use Crmoz\ZohoSDK\Events\CrmApiCreateRecordEvent;
use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    protected $listen = [
        'App\Events\Event' => [
            'App\Listeners\EventListener',
        ],
        '\Crmoz\ZohoSDK\Events\CrmApiCreateRecordEvent' => [
            'App\Listeners\ContactCreatedListener',
        ],
        '\Crmoz\ZohoSDK\Events\CrmHookCreateEvent' => [
            'App\Listeners\ContactCreatedListener',
        ],
        '\Crmoz\ZohoSDK\Events\ModelRecordCreateEvent' => [
            'App\Listeners\ContactCreatedListener',
        ],
        '\Crmoz\ZohoSDK\Events\ModelRecordSaveEvent' => [
            'App\Listeners\ContactCreatedListener',
        ]
    ];


    public function boot()
    {
        parent::boot();

        //
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).