PHP Class Aerys\Bootstrapper

Exibir arquivo Open project: amphp/aerys Class Usage Examples

Public Methods

Method 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

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

Method Details

__construct() public method

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

boot() public method

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

init() public method

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
return Server

selectConfigFile() public static method

public static selectConfigFile ( string $configFile ) : string
$configFile string
return string