Skip to content

Commit

Permalink
Merge pull request #833 from kenjis/feat-user-command
Browse files Browse the repository at this point in the history
feat: add CLI command to manage users
  • Loading branch information
kenjis authored Sep 19, 2023
2 parents a331260 + e546f27 commit fc0926b
Show file tree
Hide file tree
Showing 10 changed files with 1,541 additions and 42 deletions.
6 changes: 4 additions & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,16 @@

// Ignore tests that use CodeIgniter::CI_VERSION
UnwrapFutureCompatibleIfPhpVersionRector::class => [
__DIR__ . '/src/Test/MockInputOutput.php',
__DIR__ . '/tests/Commands/SetupTest.php',
__DIR__ . '/tests/Commands/UserModelGeneratorTest.php',
__DIR__ . '/tests/Controllers/LoginTest.php',
__DIR__ . '/tests/Commands/SetupTest.php',
],
RemoveUnusedPrivatePropertyRector::class => [
__DIR__ . '/src/Test/MockInputOutput.php',
__DIR__ . '/tests/Commands/SetupTest.php',
__DIR__ . '/tests/Commands/UserModelGeneratorTest.php',
__DIR__ . '/tests/Controllers/LoginTest.php',
__DIR__ . '/tests/Commands/SetupTest.php',
],
]);

Expand Down
11 changes: 11 additions & 0 deletions src/Commands/Exceptions/BadInputException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace CodeIgniter\Shield\Commands\Exceptions;

use CodeIgniter\Shield\Exceptions\RuntimeException;

class BadInputException extends RuntimeException
{
}
11 changes: 11 additions & 0 deletions src/Commands/Exceptions/CancelException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace CodeIgniter\Shield\Commands\Exceptions;

use CodeIgniter\Shield\Exceptions\RuntimeException;

class CancelException extends RuntimeException
{
}
Loading

0 comments on commit fc0926b

Please sign in to comment.