Part-DB.Part-DB-server/bin/console

18 lines
492 B
Text
Raw Normal View History

2019-02-23 16:49:38 +01:00
#!/usr/bin/env php
<?php
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
2020-01-07 19:00:11 +01:00
2021-10-02 20:53:03 +02:00
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
2020-01-07 19:00:11 +01:00
}
2019-02-23 16:49:38 +01:00
2021-10-02 20:53:03 +02:00
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
2019-02-23 16:49:38 +01:00
2021-10-02 20:53:03 +02:00
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
2019-02-23 16:49:38 +01:00
2021-10-02 20:53:03 +02:00
return new Application($kernel);
};