/** * @deprecated * * @return Settings */ public static function singleton() { static $instance = null; if ($instance === null) { $instance = new self(); $instance->initFromGlobals(); } return $instance; }