PHP Class Spatie\Commands\ResolveCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Show file Open project: spatie/ssl-certificate-chain-resolver

Protected Properties

Property Type Description
$httpClient

Public Methods

Method Description
__construct ( )

Protected Methods

Method Description
configure ( ) Configure the command options.
confirmOverwrite ( $input, $output, $outputFile ) : boolean Check if outputfile already exists, if so, ask the user confirmation to overwrite.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void Execute the command.
getCertificateChain ( string $certificateFile, Symfony\Component\Console\Output\OutputInterface $output ) : string Get a string with the contents of the given certificatefile and it's entire trust chain.
guardAgainstInvalidInput ( $certificateFile ) Validate the inputfile.

Method Details

__construct() public method

public __construct ( )

configure() protected method

Configure the command options.
protected configure ( )

confirmOverwrite() protected method

Check if outputfile already exists, if so, ask the user confirmation to overwrite.
protected confirmOverwrite ( $input, $output, $outputFile ) : boolean
$input
$output
$outputFile
return boolean

execute() protected method

Execute the command.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer | null | void

getCertificateChain() protected method

Get a string with the contents of the given certificatefile and it's entire trust chain.
protected getCertificateChain ( string $certificateFile, Symfony\Component\Console\Output\OutputInterface $output ) : string
$certificateFile string
$output Symfony\Component\Console\Output\OutputInterface
return string

guardAgainstInvalidInput() protected method

Validate the inputfile.
protected guardAgainstInvalidInput ( $certificateFile )
$certificateFile

Property Details

$httpClient protected property

protected $httpClient