Skip to content

Commit fc0926b

Browse files
authored
Merge pull request #833 from kenjis/feat-user-command
feat: add CLI command to manage users
2 parents a331260 + e546f27 commit fc0926b

10 files changed

Lines changed: 1541 additions & 42 deletions

File tree

rector.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,16 @@
9898

9999
// Ignore tests that use CodeIgniter::CI_VERSION
100100
UnwrapFutureCompatibleIfPhpVersionRector::class => [
101+
__DIR__ . '/src/Test/MockInputOutput.php',
102+
__DIR__ . '/tests/Commands/SetupTest.php',
101103
__DIR__ . '/tests/Commands/UserModelGeneratorTest.php',
102104
__DIR__ . '/tests/Controllers/LoginTest.php',
103-
__DIR__ . '/tests/Commands/SetupTest.php',
104105
],
105106
RemoveUnusedPrivatePropertyRector::class => [
107+
__DIR__ . '/src/Test/MockInputOutput.php',
108+
__DIR__ . '/tests/Commands/SetupTest.php',
106109
__DIR__ . '/tests/Commands/UserModelGeneratorTest.php',
107110
__DIR__ . '/tests/Controllers/LoginTest.php',
108-
__DIR__ . '/tests/Commands/SetupTest.php',
109111
],
110112
]);
111113

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace CodeIgniter\Shield\Commands\Exceptions;
6+
7+
use CodeIgniter\Shield\Exceptions\RuntimeException;
8+
9+
class BadInputException extends RuntimeException
10+
{
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace CodeIgniter\Shield\Commands\Exceptions;
6+
7+
use CodeIgniter\Shield\Exceptions\RuntimeException;
8+
9+
class CancelException extends RuntimeException
10+
{
11+
}

0 commit comments

Comments
 (0)