generated from Nodarx/template
27 lines
866 B
PHP
27 lines
866 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KTXM\ServiceWopi;
|
|
|
|
use KTXF\Module\Configuration\ConsoleModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
use KTXM\ServiceWopi\Console\CheckCommand;
|
|
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
public function handle(): string { return 'service_wopi'; }
|
|
public function label(): string { return 'WOPI Service'; }
|
|
public function author(): string { return 'Ktrix'; }
|
|
public function version(): string { return '0.0.1'; }
|
|
public function description(): string { return 'WOPI discovery and connection diagnostics'; }
|
|
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof ConsoleModuleContextInterface) {
|
|
$context->registerCommand(CheckCommand::class);
|
|
}
|
|
}
|
|
}
|