2026-05-13 09:10:43 +03:00
|
|
|
#!/usr/bin/env php
|
|
|
|
|
<?php
|
|
|
|
|
|
2026-06-23 01:15:35 +03:00
|
|
|
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
|
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
} elseif (file_exists(__DIR__ . '/../../../autoload.php')) {
|
|
|
|
|
require __DIR__ . '/../../../autoload.php';
|
|
|
|
|
} else {
|
|
|
|
|
echo "Autoload file not found.\n";
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
2026-05-13 09:10:43 +03:00
|
|
|
|
|
|
|
|
use Symfony\Component\Console\Application;
|
2026-07-13 10:54:25 +03:00
|
|
|
use YakNet\AccessibilityConsole\Core\Container\ContainerFactory;
|
2026-11-21 09:48:29 +03:00
|
|
|
use YakNet\AccessibilityConsole\Console\Command\CompareCommand;
|
|
|
|
|
use YakNet\AccessibilityConsole\Console\Command\DoctorCommand;
|
|
|
|
|
use YakNet\AccessibilityConsole\Console\Command\ExplainCommand;
|
2026-05-13 09:10:43 +03:00
|
|
|
use YakNet\AccessibilityConsole\Console\Command\FixCommand;
|
2026-06-23 01:02:15 +03:00
|
|
|
use YakNet\AccessibilityConsole\Console\Command\InitCommand;
|
2026-11-21 09:48:29 +03:00
|
|
|
use YakNet\AccessibilityConsole\Console\Command\PresetsCommand;
|
2026-06-23 01:02:15 +03:00
|
|
|
use YakNet\AccessibilityConsole\Console\Command\RulesCommand;
|
2026-11-21 09:48:29 +03:00
|
|
|
use YakNet\AccessibilityConsole\Console\Command\ScanCommand;
|
|
|
|
|
use YakNet\AccessibilityConsole\Console\Command\VpatCommand;
|
2026-09-12 10:12:05 +03:00
|
|
|
use YakNet\AccessibilityConsole\Console\Command\WatchCommand;
|
2026-05-13 09:10:43 +03:00
|
|
|
|
2026-07-13 10:54:25 +03:00
|
|
|
$container = ContainerFactory::create();
|
2026-11-21 09:48:29 +03:00
|
|
|
$application = new Application('YakNet Accessibility Console', '4.0.0');
|
2026-05-13 09:10:43 +03:00
|
|
|
|
2026-07-13 10:54:25 +03:00
|
|
|
// Add commands resolved via DI Container
|
2026-07-14 00:28:58 +03:00
|
|
|
$application->addCommand($container->get(ScanCommand::class));
|
|
|
|
|
$application->addCommand($container->get(FixCommand::class));
|
|
|
|
|
$application->addCommand($container->get(InitCommand::class));
|
|
|
|
|
$application->addCommand($container->get(RulesCommand::class));
|
2026-09-12 10:12:05 +03:00
|
|
|
$application->addCommand($container->get(WatchCommand::class));
|
2026-11-21 09:48:29 +03:00
|
|
|
$application->addCommand($container->get(VpatCommand::class));
|
|
|
|
|
$application->addCommand($container->get(CompareCommand::class));
|
|
|
|
|
$application->addCommand($container->get(DoctorCommand::class));
|
|
|
|
|
$application->addCommand($container->get(ExplainCommand::class));
|
|
|
|
|
$application->addCommand($container->get(PresetsCommand::class));
|
2026-05-13 09:10:43 +03:00
|
|
|
|
|
|
|
|
$application->run();
|