mirror of
https://github.com/kevinpapst/kimai2.git
synced 2025-04-08 15:00:20 +00:00
19 lines
510 B
PHP
19 lines
510 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Kimai time-tracking app.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
use App\Kernel;
|
|
use Symfony\Component\Dotenv\Dotenv;
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
(new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env');
|
|
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
|
|
$kernel->boot();
|
|
|
|
return $kernel->getContainer()->get('doctrine')->getManager();
|