hanze/memory

memory-backend/bin/console in main
Repositories | Summary | Log | Files

console (492B) download


 1#!/usr/bin/env php
 2<?php
 3
 4use App\Kernel;
 5use Symfony\Bundle\FrameworkBundle\Console\Application;
 6
 7if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
 8    throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
 9}
10
11require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
12
13return function (array $context) {
14    $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
15
16    return new Application($kernel);
17};