45 lines
960 B
PHP
45 lines
960 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Netig\Netslim\AuditLog;
|
|
|
|
use Netig\Netslim\Kernel\Runtime\Module\ModuleInterface;
|
|
use Netig\Netslim\Kernel\Runtime\Module\ProvidesSchemaInterface;
|
|
use Psr\Container\ContainerInterface;
|
|
use Slim\App;
|
|
|
|
/**
|
|
* Journal d'audit des actions métier et techniques.
|
|
*/
|
|
final class AuditLogModule implements ModuleInterface, ProvidesSchemaInterface
|
|
{
|
|
public function definitions(): array
|
|
{
|
|
return require __DIR__ . '/Infrastructure/dependencies.php';
|
|
}
|
|
|
|
/** @param App<ContainerInterface> $app */
|
|
public function registerRoutes(App $app): void {}
|
|
|
|
public function templateNamespaces(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function twigExtensions(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function migrationDirectories(): array
|
|
{
|
|
return [__DIR__ . '/Migrations'];
|
|
}
|
|
|
|
public function requiredTables(): array
|
|
{
|
|
return ['audit_log'];
|
|
}
|
|
}
|