murph-skeleton/bin/console

20 lines
516 B
Plaintext
Raw Permalink Normal View History

2021-03-24 12:27:07 +01:00
#!/usr/bin/env php
<?php
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".');
2021-03-24 12:27:07 +01:00
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
2021-03-24 12:27:07 +01:00
2023-07-20 09:21:17 +02:00
chdir(__DIR__.'/../');
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
2021-03-24 12:27:07 +01:00
return new Application($kernel);
};