[TOOLS][PHPStan] Add mechanism for initializing the whole application

This commit is contained in:
2021-09-08 19:37:33 +00:00
parent ddb9702b1c
commit f81bf4a257
5 changed files with 43 additions and 41 deletions

View File

@@ -3,8 +3,7 @@
require_once 'bootstrap.php';
use App\Kernel;
use Symfony\Component\Dotenv\Dotenv;
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$kernel->boot();
return $kernel->getContainer()->get('doctrine')->getManager();
return $kernel;