PHP Class Aerys\Bootstrapper

Afficher le fichier Open project: amphp/aerys Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( callable $hostAggregator = null )
boot ( Psr\Log\LoggerInterface $logger, Console $console ) : Generator Bootstrap a server from command line options
init ( Psr\Log\LoggerInterface $logger, array $options = [] ) : Server Initializes the server directly without config file inclusion
selectConfigFile ( string $configFile ) : string

Private Methods

Méthode Description
buildVhost ( Host $host, callable $bootLoader ) : Vhost
generateOptionsObjFromArray ( array $optionsArray ) : Options
generatePublicOptionsStruct ( Options $options ) : Options

Method Details

__construct() public méthode

public __construct ( callable $hostAggregator = null )
$hostAggregator callable

boot() public méthode

Bootstrap a server from command line options
public boot ( Psr\Log\LoggerInterface $logger, Console $console ) : Generator
$logger Psr\Log\LoggerInterface
$console Console
Résultat Generator

init() public méthode

Initializes the server directly without config file inclusion
public init ( Psr\Log\LoggerInterface $logger, array $options = [] ) : Server
$logger Psr\Log\LoggerInterface
$options array Aerys options array
Résultat Server

selectConfigFile() public static méthode

public static selectConfigFile ( string $configFile ) : string
$configFile string
Résultat string