Deployer\Bootstrap\BootstrapByConfigFile::setConfig PHP Метод

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

public setConfig ( string $file ) : BootstrapByConfigFile
$file string
Результат BootstrapByConfigFile
    public function setConfig($file)
    {
        $this->configFile = $file;
        return $this;
    }

Usage Example

Пример #1
0
/**
 * Load server list file.
 * @param string $file
 */
function serverList($file)
{
    $bootstrap = new Bootstrap\BootstrapByConfigFile();
    $bootstrap->setConfig($file);
    $bootstrap->parseConfig();
    $bootstrap->initServers();
    $bootstrap->initClusters();
}