<?php

namespace Dipper\Foundation\Repository;

use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'Dipper\Foundation\Repository\Events\RepositoryModelCreated' => [
            'Dipper\Foundation\Repository\Listeners\CleanCacheRepository',
        ],
        'Dipper\Foundation\Repository\Events\RepositoryModelUpdated' => [
            'Dipper\Foundation\Repository\Listeners\CleanCacheRepository',
        ],
        'Dipper\Foundation\Repository\Events\RepositoryModelDeleted' => [
            'Dipper\Foundation\Repository\Listeners\CleanCacheRepository',
        ],
    ];
}
