CommandLineUserCreation
final readonly class \
Internal
Exclusively for use in CommandLineUserAuthentication and in TYPO3 setup code (cli and controller)
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Constants
- CLI_USERNAME : string = '_cli_'
Methods
- __construct() : mixed
- ensureCliUserExists() : void
- Create a record in the DB table be_users called "_cli_" with no other information, when it does not exist already. Only a missing user is checked again and created under an exclusive lock, so that processes starting at the same time create the user only once, and an existing user never waits for the lock.
Constants
CLI_USERNAME
public
string
CLI_USERNAME
= '_cli_'
Methods
__construct()
public
__construct(ConnectionPool $connectionPool, PasswordHashFactory $passwordHashFactory, LockFactory $lockFactory) : mixed
Parameters
- $connectionPool : ConnectionPool
- $passwordHashFactory : PasswordHashFactory
- $lockFactory : LockFactory
ensureCliUserExists()
Create a record in the DB table be_users called "_cli_" with no other information, when it does not exist already. Only a missing user is checked again and created under an exclusive lock, so that processes starting at the same time create the user only once, and an existing user never waits for the lock.
public
ensureCliUserExists() : void