public static function getInstance() { if (is_null(self::$serviceLocator)) { self::$serviceLocator = new self(); } return self::$serviceLocator; }