<?php

namespace Plugins\Sliders;

use Illuminate\Support\ServiceProvider;
use AleshaCMS\CMS\Hook\HookManager;

class SlidersServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        $hooks = $this->app->make(HookManager::class);

        $hooks->filter('page_builder.sections', function (array $sections) {
            $sections[] = ['type' => 'slider', 'label' => 'Slider', 'icon' => 'photo'];
            return $sections;
        });
    }
}
