PHP Class Deployer\Bootstrap\BootstrapByConfigFile

Moved some initialization logic from src/functions.php to here, since putting application logic in public functions which callable without any restriction is not good. We do not need any inheritance or interface implementation here, it's just simple POPO class.
Author: Irfan Durmus (http://github.com/irfan) ([email protected])
Show file Open project: elfet/deployer Class Usage Examples

Public Properties

Property Type Description
$clusterBuilders Deployer\Builder\BuilderInterface[]
$clusterConfig array
$configFile string | null
$configFileContent array | string | stdClass | null
$serverBuilders Deployer\Builder\BuilderInterface[]
$serverConfig array

Public Methods

Method Description
initClusters ( ) : BootstrapByConfigFile
initServers ( ) : BootstrapByConfigFile
parseConfig ( ) : BootstrapByConfigFile
setConfig ( string $file ) : BootstrapByConfigFile

Private Methods

Method Description
executeBuilderMethods ( Collection $config, Deployer\Builder\BuilderInterface $builder )

Method Details

initClusters() public method

public initClusters ( ) : BootstrapByConfigFile
return BootstrapByConfigFile

initServers() public method

public initServers ( ) : BootstrapByConfigFile
return BootstrapByConfigFile

parseConfig() public method

public parseConfig ( ) : BootstrapByConfigFile
return BootstrapByConfigFile

setConfig() public method

public setConfig ( string $file ) : BootstrapByConfigFile
$file string
return BootstrapByConfigFile

Property Details

$clusterBuilders public property

public BuilderInterface[],Deployer\Builder $clusterBuilders
return Deployer\Builder\BuilderInterface[]

$clusterConfig public property

public array $clusterConfig
return array

$configFile public property

public string|null $configFile
return string | null

$configFileContent public property

public array|string|stdClass|null $configFileContent
return array | string | stdClass | null

$serverBuilders public property

public BuilderInterface[],Deployer\Builder $serverBuilders
return Deployer\Builder\BuilderInterface[]

$serverConfig public property

public array $serverConfig
return array