FEATURE: simplify template handler - move un/install and registerAdminMenu into base class
This commit is contained in:
@@ -2,7 +2,33 @@
|
||||
namespace Templates\Base\OnePage\Handlers;
|
||||
|
||||
use App\Handlers\Contracts\TemplateHandler;
|
||||
use App\Models\Module;
|
||||
use App\Models\User;
|
||||
|
||||
abstract class OnePage implements TemplateHandler
|
||||
{
|
||||
/**
|
||||
* Register admin menu (or multiple ones)
|
||||
*
|
||||
* This cannot be in ServiceProvider because Session is started at middleware. And ServiceProvider is called before
|
||||
* starting any middleware..
|
||||
*
|
||||
* @param User $user model of logged user
|
||||
*/
|
||||
public static function registerAdminMenu(User $user)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Install module
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function install()
|
||||
{
|
||||
}
|
||||
|
||||
public static function uninstall(Module $template)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user