generated from Nodarx/template
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 23612dcb3e | |||
| 3fdb7b7a2e |
Generated
+6
-6
@@ -1201,16 +1201,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "12.5.34",
|
"version": "12.5.35",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "6cbff63d670de92cb1cb3d2ff9f40327e9da9c7f"
|
"reference": "345ac22e42cb14cdc7aa8428655d8bb8c82a4aab"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6cbff63d670de92cb1cb3d2ff9f40327e9da9c7f",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/345ac22e42cb14cdc7aa8428655d8bb8c82a4aab",
|
||||||
"reference": "6cbff63d670de92cb1cb3d2ff9f40327e9da9c7f",
|
"reference": "345ac22e42cb14cdc7aa8428655d8bb8c82a4aab",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1279,7 +1279,7 @@
|
|||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||||
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
||||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.34"
|
"source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.35"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1287,7 +1287,7 @@
|
|||||||
"type": "other"
|
"type": "other"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2026-08-27T08:38:28+00:00"
|
"time": "2026-09-09T04:48:50+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/cli-parser",
|
"name": "sebastian/cli-parser",
|
||||||
|
|||||||
+14
-18
@@ -14,8 +14,9 @@ use KTXC\User\Event\UserCreatedEvent;
|
|||||||
use KTXC\User\Event\UserDeletingEvent;
|
use KTXC\User\Event\UserDeletingEvent;
|
||||||
use KTXF\Event\DeliveryMode;
|
use KTXF\Event\DeliveryMode;
|
||||||
use KTXF\Event\EventListenerRegistrarInterface;
|
use KTXF\Event\EventListenerRegistrarInterface;
|
||||||
use KTXF\Module\ModuleBrowserInterface;
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
||||||
use KTXF\Module\ModuleConsoleInterface;
|
use KTXF\Module\Configuration\ConsoleModuleContextInterface;
|
||||||
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
||||||
use KTXF\Module\ModuleInstanceAbstract;
|
use KTXF\Module\ModuleInstanceAbstract;
|
||||||
use KTXF\Resource\Provider\ProviderInterface;
|
use KTXF\Resource\Provider\ProviderInterface;
|
||||||
use KTXM\ProviderImap\Console\ConnectCommand;
|
use KTXM\ProviderImap\Console\ConnectCommand;
|
||||||
@@ -30,7 +31,7 @@ use KTXM\ProviderImap\Providers\Provider as MailProvider;
|
|||||||
*
|
*
|
||||||
* Registers the IMAP mail provider with the Ktrix provider manager.
|
* Registers the IMAP mail provider with the Ktrix provider manager.
|
||||||
*/
|
*/
|
||||||
class Module extends ModuleInstanceAbstract implements ModuleConsoleInterface, ModuleBrowserInterface
|
class Module extends ModuleInstanceAbstract
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly ProviderManager $providerManager,
|
private readonly ProviderManager $providerManager,
|
||||||
@@ -82,26 +83,21 @@ class Module extends ModuleInstanceAbstract implements ModuleConsoleInterface, M
|
|||||||
$this->providerManager->register(ProviderInterface::TYPE_MAIL, 'imap', MailProvider::class);
|
$this->providerManager->register(ProviderInterface::TYPE_MAIL, 'imap', MailProvider::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function registerCI(): array
|
public function configure(ModuleContextInterface $context): void
|
||||||
{
|
{
|
||||||
return [
|
if ($context instanceof BrowserModuleContextInterface) {
|
||||||
|
$context->registerModule($this, 'ProviderImap', 'static/module.mjs');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($context instanceof ConsoleModuleContextInterface) {
|
||||||
|
foreach ([
|
||||||
DiscoverCommand::class,
|
DiscoverCommand::class,
|
||||||
ConnectCommand::class,
|
ConnectCommand::class,
|
||||||
DisconnectCommand::class,
|
DisconnectCommand::class,
|
||||||
TestCommand::class,
|
TestCommand::class,
|
||||||
];
|
] as $command) {
|
||||||
|
$context->registerCommand($command);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function registerBI(): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'handle' => $this->handle(),
|
|
||||||
'namespace' => 'ProviderImap',
|
|
||||||
'version' => $this->version(),
|
|
||||||
'label' => $this->label(),
|
|
||||||
'author' => $this->author(),
|
|
||||||
'description' => $this->description(),
|
|
||||||
'boot' => 'static/module.mjs',
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user