Neos\Neos\Command\UserCommandController::deactivateCommand PHP 메소드

deactivateCommand() 공개 메소드

This command deactivates a user by flagging all of its accounts as expired. If an authentication provider is specified, this command will look for an account with the given username related to the given provider. Still, this command will deactivate all accounts of a user, once such a user has been found.
public deactivateCommand ( string $username, string $authenticationProvider = null ) : void
$username string The username of the user to be deactivated.
$authenticationProvider string Name of the authentication provider to use for finding the user. Example: "Typo3BackendProvider"
리턴 void
    public function deactivateCommand($username, $authenticationProvider = null)
    {
        $user = $this->getUserOrFail($username, $authenticationProvider);
        $this->userService->deactivateUser($user);
        $this->outputLine('Deactivated user "%s".', array($username));
    }