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) (irfandurmus@gmail.com)
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();
}