battle with structure
This commit is contained in:
26
app/Modules/ModuleContract.php
Normal file
26
app/Modules/ModuleContract.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Modules;
|
||||
|
||||
interface ModuleContract
|
||||
{
|
||||
/**
|
||||
* Check if is module enabled
|
||||
*/
|
||||
public function isEnabled(): bool;
|
||||
|
||||
/**
|
||||
* Disable module
|
||||
*/
|
||||
public function disable(): void;
|
||||
|
||||
/**
|
||||
* Enable module
|
||||
*/
|
||||
public function enable(): void;
|
||||
|
||||
/**
|
||||
* Check if module has a filament resource
|
||||
*/
|
||||
public function hasFilamentResource(): bool;
|
||||
}
|
||||
Reference in New Issue
Block a user