mirror of
https://github.com/wallabag/wallabag.git
synced 2026-10-12 23:49:31 +02:00
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.
13 lines
309 B
PHP
Executable File
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);
|
|
};
|