protected function getCurrentUsername()
{
// Assuming its safe to statically cache since only one user should be running the program
if (!Arrays::vod(self::$configCache, '__USERNAME__')) {
/** @var \Bart\Shell $shell */
$shell = Diesel::create('\\Bart\\Shell');
self::$configCache['__USERNAME__'] = $shell->get_effective_user_name();
}
return self::$configCache['__USERNAME__'];
}