feat(service): add api service

This commit is contained in:
2024-07-29 18:50:58 +02:00
parent e929853bb2
commit e1375f1bf5
18 changed files with 639 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace App\Tests\Common;
use Monolog\Handler\TestHandler;
use Monolog\Logger;
trait LoggerTrait
{
/**
* @return Logger
*/
protected function getLogger(): Logger
{
$logger = new Logger('test');
$logger->pushHandler(new TestHandler());
return $logger;
}
}