[TOOLS][PHPStan] Add mechanism for initializing the whole application
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user