Add repo hygiene rules and ignore secrets

This commit is contained in:
2026-02-03 06:55:39 +01:00
parent 88732a8ae7
commit 6035bc1715
52 changed files with 3295 additions and 25 deletions

View File

@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace App\Tests\Support;
use App\Bootstrap;
use App\Config\ConfigLoader;
use App\Config\ConfigValidator;
use App\Shared\Clock\TimeProvider;
use Psr\Container\ContainerInterface;
use Slim\App;
final class TestAppFactory
{
public static function create(\PDO $pdo, TimeProvider $timeProvider): App
{
$repoRoot = dirname(__DIR__, 3);
$container = Bootstrap::buildContainer([
\PDO::class => $pdo,
TimeProvider::class => $timeProvider,
ConfigLoader::class => new ConfigLoader(new ConfigValidator(), $repoRoot . '/config'),
]);
return Bootstrap::createApp($container);
}
}