This commit contains only core funcionality of displaying history. Module settings must be implemented in each module.
34 lines
843 B
PHP
34 lines
843 B
PHP
<?php
|
|
namespace App\Handlers;
|
|
|
|
use App\Handlers\Contracts\AppHandler;
|
|
use App\Models\User;
|
|
|
|
/**
|
|
* Class Handler
|
|
*
|
|
* Handler is a class which handles module-specific behaviour which cannot be done by module itself, resp. cannot be
|
|
* done by some abstract magic.
|
|
*
|
|
* @package App\Handlers
|
|
*/
|
|
abstract class Handler implements AppHandler
|
|
{
|
|
public static function getHistoryHandler()
|
|
{
|
|
return History::class;
|
|
}
|
|
|
|
/**
|
|
* 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)
|
|
{
|
|
// core menu is registered in AdminMenuServiceProvider
|
|
}
|
|
} |