CommandLineUserCreation

final readonly class \TYPO3\CMS\Core\Authentication\CommandLineUserCreation

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

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
On this page