RequestSecretCommand
class RequestSecretCommand extends Command (View source)
Request client app secret.
Traits
Console commands utilities.
Properties
protected ClientInterface | $client | Guzzle HTTP client instance. |
|
protected string | $product | Product subscribed too. |
|
protected string | $signature | The name and signature of the console command. |
|
protected string | $description | The console command description. |
Methods
Warn user running command in production.
Print formatted labels.
Write | replace setting in .env file.
Create a new command instance.
Execute the console command.
Determine client ID.
Request for client APP secret.
Details
protected bool
runInProduction(string $warning = 'Application In Production!')
Warn user running command in production.
protected void
printLabels(string $title, array|string $body = null)
Print formatted labels.
protected string
getRegex(string $name, string $key)
deprecated
deprecated
Determine replacement regex pattern a setting.
protected void
updateSetting(string $name, string $key, string $value)
Write | replace setting in .env file.
__construct(ClientInterface $client)
Create a new command instance.
void
handle()
Execute the console command.
protected string
getClientId()
Determine client ID.
protected string|null
requestClientSecret(string $clientId)
Request for client APP secret.