Files
core/app/Handlers/Handler.php
T
Michal Kváček 620a5545d8 FEATURE #1373: add history of content
This commit contains only core funcionality of displaying history. Module settings must be implemented in each module.
2016-02-05 16:06:13 +01:00

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
}
}