AspireSync/bin/console
Chuck Adams fdc1ced7ec
convert to full Symfony framework (#35)
* feat: switch to symfony/skeleton 7.2

* chore: move AspirePress\AspireSync -> App

* refactor: rm styled output which is redundant with monolog

* docs: update README for bin/console

* refactor: rename commands to all use sync: prefix

* chore: rm bin/aspiresync

* feat: add SyncAsset and SyncResource entities

* chore: add doctrine-migrations-bindle

* feat: add migration

* feat: new docker-compose stack

* chore: switch to postgres backend
2024-12-01 08:04:14 -07:00

21 lines
635 B
PHP
Executable file

#!/usr/bin/env php
<?php
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
if (!is_dir(dirname(__DIR__) . '/vendor')) {
throw new LogicException('Dependencies are missing. Try running "composer install".');
}
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);
};