<?php

namespace Siberfx\ThemeTabler;

use Siberfx\CRUD\ThemeServiceProvider;
use Illuminate\View\Compilers\BladeCompiler;
use Illuminate\Support\Facades\Blade;

class AddonServiceProvider extends ThemeServiceProvider
{
    protected string $vendorName = 'siberfx';
    protected string $packageName = 'theme-tabler';


    public function boot(): void
    {
        $this->autoboot();

        $this->app->afterResolving(BladeCompiler::class, function () {
            Blade::componentNamespace('Siberfx\\ThemeTabler\\View\\Components', $this->packageName);
        });

    }
}
