magnetico-web/bin/console

19 lines
517 B
Plaintext
Raw Permalink Normal View History

2018-06-20 16:35:08 +00:00
#!/usr/bin/env php
<?php
declare(strict_types=1);
2018-06-20 16:35:08 +00:00
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}
2018-06-20 16:35:08 +00:00
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
2018-06-20 16:35:08 +00:00
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
2018-06-20 16:35:08 +00:00
return new Application($kernel);
};