use MyConfig; # this instance is common for all threads MyConfig::instance()->getVal(...);