0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-05-09 03:20:14 +00:00
kevinpapst_kimai2/bin/console

20 lines
491 B
Text
Raw Normal View History

2016-10-20 22:10:41 +02:00
#!/usr/bin/env php
<?php
2018-01-12 20:39:07 +01:00
use App\Kernel;
use App\ConsoleApplication;
2016-10-20 22:10:41 +02:00
set_time_limit(0);
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}
2016-10-20 22:10:41 +02:00
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
2018-01-12 20:39:07 +01:00
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
2016-10-20 22:10:41 +02:00
return new ConsoleApplication($kernel);
};