1 Commits

Author SHA1 Message Date
Sebastian e7ebb2f75b refactor(module): register integrations through runtime contexts
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-08-31 22:55:11 -04:00
2 changed files with 11 additions and 15 deletions
+8 -12
View File
@@ -2,13 +2,14 @@
namespace KTXM\PeopleManager; namespace KTXM\PeopleManager;
use KTXF\Module\ModuleBrowserInterface; use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract; use KTXF\Module\ModuleInstanceAbstract;
/** /**
* People Manager Module * People Manager Module
*/ */
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface class Module extends ModuleInstanceAbstract
{ {
public function __construct() public function __construct()
@@ -59,15 +60,10 @@ class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
]; ];
} }
public function registerBI(): array { public function configure(ModuleContextInterface $context): void
return [ {
'handle' => $this->handle(), if ($context instanceof BrowserModuleContextInterface) {
'namespace' => 'PeopleManager', $context->registerModule($this, 'PeopleManager', 'static/module.mjs');
'version' => $this->version(), }
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
} }
} }
+3 -3
View File
@@ -1804,9 +1804,9 @@
} }
}, },
"node_modules/pinia": { "node_modules/pinia": {
"version": "4.0.3", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/pinia/-/pinia-4.0.3.tgz", "resolved": "https://registry.npmjs.org/pinia/-/pinia-4.0.2.tgz",
"integrity": "sha512-XMQqpvjgG7LMqVhhFUzKLT4KEbsYbfZZ0CZU9PgdFm1O2VKBmIkykL8+SfNhOaT7sR0wT6BEgKT0YNDYWgmVRA==", "integrity": "sha512-yKVVA7bSj5oRZFp/Ab9wLlmyb5gPUYEiIm4ryiWTe/xe7PtkRdMVOp1X1ggvq0c6Uj7Q0Du1HnV2mtAwM0Ks1g==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"nostics": "^1.1.4" "nostics": "^1.1.4"