generated from Nodarx/template
23 lines
893 B
PHP
23 lines
893 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace KTXM\ProviderEditorOffice;
|
|
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
public function handle(): string { return 'provider_editor_office'; }
|
|
public function label(): string { return 'Office Editor Provider'; }
|
|
public function author(): string { return 'Ktrix'; }
|
|
public function version(): string { return '0.0.1'; }
|
|
public function description(): string { return 'Provides read-only office document viewing through WOPI'; }
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'ProviderEditorOffice', 'static/module.mjs');
|
|
}
|
|
}
|
|
}
|