mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-25 05:24:44 +02:00
22 lines
521 B
PHP
22 lines
521 B
PHP
<?php
|
|
|
|
namespace App\Features;
|
|
|
|
use Filament\Actions\Action;
|
|
|
|
abstract class Feature
|
|
{
|
|
/** you need to agree to the eula in order to run the server */
|
|
abstract static public function listeners(): array;
|
|
|
|
/** eula */
|
|
abstract static public function featureName(): string;
|
|
|
|
abstract static public function action(): Action;
|
|
|
|
public function matchesListeners(string $line): bool
|
|
{
|
|
return collect(static::listeners())->contains(fn ($value) => str($line)->lower->contains($value));
|
|
}
|
|
}
|