migrate shell/helper scripts to symfony/console components

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-04-10 10:05:21 +02:00
parent 7f0eb97f9b
commit 0f4325f68d
21 changed files with 1146 additions and 1485 deletions

18
bin/froxlor-cli Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);
use Symfony\Component\Console\Application;
use Froxlor\Cli\ConfigServices;
use Froxlor\Cli\PhpSessionclean;
use Froxlor\Cli\SwitchServerIp;
require dirname(__DIR__) . '/vendor/autoload.php';
require dirname(__DIR__) . '/lib/tables.inc.php';
$application = new Application;
$application->add(new ConfigServices());
$application->add(new PhpSessionclean());
$application->add(new SwitchServerIp());
$application->run();