PHP Class Platformsh\Cli\Command\Domain\DomainCommandBase

Inheritance: extends Platformsh\Cli\Command\CommandBase
Show file Open project: commerceguys/platform-cli

Protected Properties

Property Type Description
$certPath
$chainPaths
$domainName
$keyPath
$sslOptions The final array of SSL options for the client parameters.

Protected Methods

Method Description
addDomainOptions ( )
handleApiException ( GuzzleHttp\Exception\ClientException $e, Platformsh\Client\Model\Project $project ) Output a clear explanation for domains API errors.
readChainFiles ( array $chainPaths ) : array Get the contents of multiple chain files.
validDomain ( string $domain ) : boolean Validate a domain.
validateDomainInput ( Symfony\Component\Console\Input\InputInterface $input ) : boolean
validateSslOptions ( ) : boolean

Method Details

addDomainOptions() protected method

protected addDomainOptions ( )

handleApiException() protected method

Output a clear explanation for domains API errors.
protected handleApiException ( GuzzleHttp\Exception\ClientException $e, Platformsh\Client\Model\Project $project )
$e GuzzleHttp\Exception\ClientException
$project Platformsh\Client\Model\Project

readChainFiles() protected method

Get the contents of multiple chain files.
protected readChainFiles ( array $chainPaths ) : array
$chainPaths array
return array An array of file contents (whitespace trimmed) keyed by file name.

validDomain() protected method

Validate a domain.
protected validDomain ( string $domain ) : boolean
$domain string
return boolean

validateDomainInput() protected method

protected validateDomainInput ( Symfony\Component\Console\Input\InputInterface $input ) : boolean
$input Symfony\Component\Console\Input\InputInterface
return boolean

validateSslOptions() protected method

protected validateSslOptions ( ) : boolean
return boolean

Property Details

$certPath protected property

protected $certPath

$chainPaths protected property

protected $chainPaths

$domainName protected property

protected $domainName

$keyPath protected property

protected $keyPath

$sslOptions protected property

The final array of SSL options for the client parameters.
protected $sslOptions