<?php

namespace TPS\Admin\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;

class EventServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        Event::listen([
            'bagisto.admin.settings.slider.edit.after',
            'bagisto.admin.settings.slider.create.after',
        ], function ($viewRenderEventManager) {
            $viewRenderEventManager->addTemplate(
                'elektronika::settings.sliders.slider-dop'
            );
        }
        );
    }
}