5 use Symfony\Bundle\FrameworkBundle\Console\Application
;
7 if (!is_dir(dirname(__DIR__
).'/vendor')) {
8 throw new LogicException('Dependencies are missing. Try running "composer install".');
11 if (!is_file(dirname(__DIR__
).'/vendor/autoload_runtime.php')) {
12 throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
15 require_once dirname(__DIR__
).'/vendor/autoload_runtime.php';
17 return function (array $context) {
18 $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
20 return new Application($kernel);