final class ApiKeyCreateCommand implements CommandInterface (View source)

api-keys:create - issues an API key owned by the acting user (--user=) and prints the secret once. ApiKeyService enforces the same rules as the web form: API enabled, api_manage_keys or ueberuser, and api.max_keys_per_user.

Constants

NAME

Methods

__construct(ApiKeyService $apiKeyService, AuditService $auditService)

No description

static string
name()

No description

static string
description()

No description

static array
options()

The command-level option names accepted next to the global ones.

int
run(Arguments $arguments, ActorInterface $actor, resource $stdout, resource $stderr)

No description

Details

__construct(ApiKeyService $apiKeyService, AuditService $auditService)

No description

Parameters

ApiKeyService $apiKeyService
AuditService $auditService

static string name()

No description

Return Value

string

static string description()

No description

Return Value

string

static array options()

The command-level option names accepted next to the global ones.

Return Value

array

int run(Arguments $arguments, ActorInterface $actor, resource $stdout, resource $stderr)

No description

Parameters

Arguments $arguments
ActorInterface $actor
resource $stdout
resource $stderr

Return Value

int

Exceptions

InvalidArgumentException