PHP Класс Aerys\Bootstrapper

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
buildVhost ( Host $host, callable $bootLoader ) : Vhost
generateOptionsObjFromArray ( array $optionsArray ) : Options
generatePublicOptionsStruct ( Options $options ) : Options

Описание методов

__construct() публичный Метод

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

boot() публичный Метод

Bootstrap a server from command line options
public boot ( Psr\Log\LoggerInterface $logger, Console $console ) : Generator
$logger Psr\Log\LoggerInterface
$console Console
Результат Generator

init() публичный Метод

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
Результат Server

selectConfigFile() публичный статический Метод

public static selectConfigFile ( string $configFile ) : string
$configFile string
Результат string