A gateway/firewall task to be able to talk someone about the real job
Fibinger Ádám
2021-10-19 15b0f1f801e4328376ee7c2c9e8e355eb4270370
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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".');
}
 
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
 
return function (array $context) {
    $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
 
    return new Application($kernel);
};