\App\ConsoleModule\CommandsUserListCommand

CLI command for user management

Summary

Methods
Properties
Constants
__construct()
No public properties found
No constants found
askUserName()
configure()
execute()
$userManager
$defaultName
N/A
No private methods found
No private properties found
N/A

Properties

$userManager

$userManager : \App\ConsoleModule\Models\ConsoleUserManager

Type

normal — User manager

$defaultName

$defaultName : string

Type

normal — Command name

Methods

__construct()

__construct(\App\ConsoleModule\Models\ConsoleUserManager  $userManager) : mixed

Constructor

Parameters

\App\ConsoleModule\Models\ConsoleUserManager $userManager

User manager

Returns

mixed

askUserName()

askUserName(\Symfony\Component\Console\Input\InputInterface  $input, \Symfony\Component\Console\Output\OutputInterface  $output) : \App\Models\Database\Entities\User

Asks for the username

Parameters

\Symfony\Component\Console\Input\InputInterface $input

Command input

\Symfony\Component\Console\Output\OutputInterface $output

Command output

Returns

\App\Models\Database\Entities\User —

Information about the user

configure()

configure() : void

Configures the user list command

execute()

execute(\Symfony\Component\Console\Input\InputInterface  $input, \Symfony\Component\Console\Output\OutputInterface  $output) : int

Executes the user list command

Parameters

\Symfony\Component\Console\Input\InputInterface $input

Command input

\Symfony\Component\Console\Output\OutputInterface $output

Command output

Returns

int —

Exit code