[CORE][EVENTS] Bring existing Events and Boostrapper back

- Adapt the existing event system to rely on Symfony's event dispatcher
This commit is contained in:
Hugo Sales
2020-03-11 20:29:08 +00:00
committed by Hugo Sales
parent c0e53ae658
commit cc47efe4b5
12 changed files with 507 additions and 273 deletions

26
src/Util/Log.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace App\Util;
use Psr\Log\LoggerInterface;
class Log
{
private static ?LoggerInterface $logger;
public static function setLogger($l): void
{
self::$logger = $l;
}
public static function error(string $msg): void
{
self::$logger->error($msg);
}
public static function info(string $msg): void
{
self::$logger->info($msg);
}
public static function debug(string $msg): void
{
$logger->debug($msg);
}
}