| 1 | <?php |
||
| 13 | class CreateUserCommand extends Command |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $signature = 'oauth2-server:create-user {--username=} {--password=}'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $description = 'Create new users for your OAuth2 server'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var UserRepository |
||
| 28 | */ |
||
| 29 | protected $users; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * CreateUserCommand constructor. |
||
| 33 | * @param UserRepository $users |
||
| 34 | */ |
||
| 35 | 16 | public function __construct(UserRepository $users) |
|
| 41 | |||
| 42 | public function handle() |
||
| 57 | |||
| 58 | } |
||
| 59 |