mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireSync.git
synced 2026-05-30 23:44:03 +08:00
* 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
21 lines
635 B
PHP
Executable file
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);
|
|
};
|