mooxphp/moox

View on GitHub
packages/press/src/WpTermPlugin.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Moox\Press;

use Filament\Contracts\Plugin;
use Filament\Panel;
use Filament\Support\Concerns\EvaluatesClosures;
use Moox\Press\Resources\WpTermResource;

class WpTermPlugin implements Plugin
{
    use EvaluatesClosures;

    public function getId(): string
    {
        return 'wp-term';
    }

    public function register(Panel $panel): void
    {
        $panel->resources([
            WpTermResource::class,
        ]);
    }

    public function boot(Panel $panel): void
    {
        //
    }

    public static function make(): static
    {
        return app(static::class);
    }
}