mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
15 lines
475 B
PHP
Executable file
15 lines
475 B
PHP
Executable file
#!/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 static function (array $context) {
|
|
return new Application(new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']));
|
|
};
|