14 lines
540 B
PHP
14 lines
540 B
PHP
<?php
|
|
use App\Kernel;
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
// Variables minimales pour booter le kernel sans vraie DB
|
|
$_ENV['DATABASE_URL'] = $_ENV['DATABASE_URL'] ?? 'postgresql://user:pass@localhost:5432/phpstan_dummy?serverVersion=16';
|
|
$_ENV['APP_SECRET'] = $_ENV['APP_SECRET'] ?? 'phpstan-dummy-secret';
|
|
$_SERVER['DATABASE_URL'] = $_ENV['DATABASE_URL'];
|
|
$_SERVER['APP_SECRET'] = $_ENV['APP_SECRET'];
|
|
|
|
$kernel = new Kernel('dev', true);
|
|
$kernel->boot();
|
|
return $kernel->getContainer()->get('doctrine')->getManager();
|