use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Runtime\Runner\ClosureRunner;
use Symfony\Component\Runtime\RunnerInterface;
use Symfony\Component\Runtime\SymfonyRuntime;
require __DIR__.'/autoload.php';
$runtime =
new class(['project_dir' => __DIR__
]) extends SymfonyRuntime
{ public function getRunner(?object
$kernel): RunnerInterface
{ return new ClosureRunner(static function D
) use ($kernel): int
{ $kernel->
handle(new Request())->
send();
echo "\n";
$kernel->
handle(new Request())->
send();
echo "\n";
return 0;
});
}};
[$app,
$args] =
$runtime->
getResolver(require __DIR__.'/kernel.php'
)->
resolve();