mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
- Adjusted migrations to align with refactored ORM annotations. - Added new PHPStan and PHP-CS-Fixer configurations, including stricter rules. - Introduced `tests/object-manager.php` to improve test environment setup.
16 lines
330 B
PHP
16 lines
330 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Symfony\Component\Dotenv\Dotenv;
|
|
use Tvdt\Kernel;
|
|
|
|
require __DIR__.'/../vendor/autoload.php';
|
|
|
|
new Dotenv()->bootEnv(__DIR__.'/../.env');
|
|
|
|
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
|
|
$kernel->boot();
|
|
|
|
return $kernel->getContainer()->get('doctrine')->getManager();
|