Files
wallabag-mirror/bin/console
Yassine Guedidi 4184ad1306 Switch bin/console and deployment scripts to APP_ENV/APP_DEBUG
bin/console now returns a closure consumed by Symfony Runtime, removing
the manual SYMFONY_ENV / SYMFONY_DEBUG env var reading. SymfonyRuntime
natively handles the --env and --no-debug CLI flags, so all existing
callers that pass --env=<env> keep working unchanged.

The three deployment scripts (install.sh, update.sh, release.sh) that
prefixed composer install with SYMFONY_ENV are updated to APP_ENV so
the environment variable is forwarded to Composer's post-install hooks
(cache:clear, assets:install) correctly.
2026-03-17 01:53:32 +01:00

13 lines
309 B
PHP
Executable File

#!/usr/bin/env php
<?php
use Symfony\Bundle\FrameworkBundle\Console\Application;
require_once __DIR__.'/../vendor/autoload_runtime.php';
return function (array $context): Application {
$kernel = new AppKernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
return new Application($kernel);
};