initServers() public method

public initServers ( ) : BootstrapByConfigFile
return BootstrapByConfigFile
Beispiel #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();
}