Audit module: audit log and address bans
This commit is contained in:
1 parent
b75403e5ea
commit
d2ea1bacac
41 files changed
+2137
-5
No files matched your search
@@ -44,6 +44,30 @@ interface Module
|
||||
/** @return list<class-string> Artisan commands this module adds */
|
||||
public function commands(): array;
|
||||
|
||||
/**
|
||||
* What the audit log calls each thing that is done through this module's routes, by route
|
||||
* name without the `manager.` prefix: `[label]` or `[label, [form fields that may be kept]]`.
|
||||
* Never list a field a secret could be typed in.
|
||||
*
|
||||
* @return array<string, array{0: string, 1?: list<string>}>
|
||||
*/
|
||||
public function actions(): array;
|
||||
|
||||
/**
|
||||
* What the audit log calls opening a page (a GET route), by route name without `manager.`.
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
public function views(): array;
|
||||
|
||||
/**
|
||||
* Middleware this module wants around every manager route: `before` runs ahead of the site's
|
||||
* own manager middleware (session, login), `after` behind it.
|
||||
*
|
||||
* @return array{before?: list<string>, after?: list<string>}
|
||||
*/
|
||||
public function middleware(): array;
|
||||
|
||||
/** Runs at boot, only when the module is on (register rate limiters, usage sources, ...). */
|
||||
public function boot(): void;
|
||||
}
|
||||
Reference in new issue
Block a user