1 Commits

Author SHA1 Message Date
Sebastian d837211b94 chore(deps): update dependency phpunit/phpunit to v12.5.34
JS Unit Tests / test (pull_request) Successful in 32s
Build Test / test (pull_request) Successful in 40s
PHP Integration Tests / Integration Tests (pull_request) Failing after 1m17s
PHP Unit Tests / test (pull_request) Successful in 1m53s
2026-08-28 03:05:10 +00:00
2 changed files with 26 additions and 17 deletions
Generated
+6 -6
View File
@@ -589,16 +589,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "12.5.35", "version": "12.5.34",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "345ac22e42cb14cdc7aa8428655d8bb8c82a4aab" "reference": "6cbff63d670de92cb1cb3d2ff9f40327e9da9c7f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/345ac22e42cb14cdc7aa8428655d8bb8c82a4aab", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6cbff63d670de92cb1cb3d2ff9f40327e9da9c7f",
"reference": "345ac22e42cb14cdc7aa8428655d8bb8c82a4aab", "reference": "6cbff63d670de92cb1cb3d2ff9f40327e9da9c7f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -667,7 +667,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.35" "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.34"
}, },
"funding": [ "funding": [
{ {
@@ -675,7 +675,7 @@
"type": "other" "type": "other"
} }
], ],
"time": "2026-09-09T04:48:50+00:00" "time": "2026-08-27T08:38:28+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
+20 -11
View File
@@ -5,9 +5,8 @@ declare(strict_types=1);
namespace KTXM\AuthenticationProviderPassword; namespace KTXM\AuthenticationProviderPassword;
use KTXC\Resource\ProviderManager; use KTXC\Resource\ProviderManager;
use KTXF\Module\Configuration\BrowserModuleContextInterface; use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\Configuration\ConsoleModuleContextInterface; use KTXF\Module\ModuleConsoleInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract; use KTXF\Module\ModuleInstanceAbstract;
use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand; use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand;
@@ -15,7 +14,7 @@ use KTXM\AuthenticationProviderPassword\Console\UserPasswordCommand;
* Default Identity Provider Module * Default Identity Provider Module
* Provides local database authentication * Provides local database authentication
*/ */
class Module extends ModuleInstanceAbstract class Module extends ModuleInstanceAbstract implements ModuleConsoleInterface, ModuleBrowserInterface
{ {
public function __construct( public function __construct(
private readonly ProviderManager $providerManager, private readonly ProviderManager $providerManager,
@@ -72,13 +71,23 @@ class Module extends ModuleInstanceAbstract
$this->providerManager->register('authentication', 'password', Provider::class); $this->providerManager->register('authentication', 'password', Provider::class);
} }
public function configure(ModuleContextInterface $context): void public function registerCI(): array
{ {
if ($context instanceof BrowserModuleContextInterface) { return [
$context->registerModule($this, 'AuthenticationProviderPassword', 'static/module.mjs'); UserPasswordCommand::class,
} ];
if ($context instanceof ConsoleModuleContextInterface) { }
$context->registerCommand(UserPasswordCommand::class);
} public function registerBI(): array
{
return [
'handle' => $this->handle(),
'namespace' => 'AuthenticationProviderPassword',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
} }
} }