setConfig() 공개 메소드

public setConfig ( string $file ) : BootstrapByConfigFile
$file string
리턴 BootstrapByConfigFile
예제 #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();
}