Add WOPI discovery service and connection diagnostics

This commit is contained in:
Sebastian Krupinski
2026-09-06 21:05:47 -04:00
committed by Sebastian Krupinski
parent 069f7068c8
commit 661e0e1213
14 changed files with 1238 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env php
<?php
declare(strict_types=1);
// Usable before module installation/configuration; does not boot the application.
$root = dirname(__DIR__, 3);
$loader = require $root . '/vendor/autoload.php';
$loader->addPsr4('KTXM\\ServiceWopi\\', dirname(__DIR__) . '/lib/');
$application = new Symfony\Component\Console\Application('WOPI connection check');
$application->addCommand(new KTXM\ServiceWopi\Console\CheckCommand(new KTXM\ServiceWopi\Discovery\DiscoveryClient()));
$application->setDefaultCommand('wopi:check', true);
exit($application->run());