PHP Class Spatie\Commands\ResolveCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Afficher le fichier Open project: spatie/ssl-certificate-chain-resolver

Protected Properties

Свойство Type Description
$httpClient

Méthodes publiques

Méthode Description
__construct ( )

Méthodes protégées

Méthode 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 méthode

public __construct ( )

configure() protected méthode

Configure the command options.
protected configure ( )

confirmOverwrite() protected méthode

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

execute() protected méthode

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
Résultat integer | null | void

getCertificateChain() protected méthode

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
Résultat string

guardAgainstInvalidInput() protected méthode

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

Property Details

$httpClient protected_oe property

protected $httpClient