Conversation
✅ Deploy Preview for selfoss ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
I do not really like Symfony console.
It is possible to make loading the commands lazy using Now, Symfony Console also supports lazy command descriptions but I would either have to use Symfony’s DI container (regular commands are getting turned to lazy ones in And even then |
This replaces the `cliupdate.php` script with a `symfony/console` based entry point:
php bin/selfossctl update
In the future we are going to introduce more commands.
We are creating `LazyCommand`s manually because `Symfony\Component\Console\CommandLoader\ContainerCommandLoader` does not support lazy loading of commands.
That appears to only be supported through Symfony’s DI container:
https://symfony.com/blog/new-in-symfony-5-3-lazy-command-description
Specifically, regular commands are getting turned to lazy ones in `Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass`.
The individual commands cannot be more lazy so `selfossctl help update` will still connect to database.
This replaces the
cliupdate.phpscript with asymfony/consolebased entry point:In the future we are going to introduce more commands.