Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/UriFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,23 @@ public static function unregisterScheme($scheme)
}
}

/**
* Get the class name for a registered scheme
*
* If provided scheme is not registered, will return NULL
*
* @param string $scheme
* @return string|null
*/
public static function getRegisteredSchemeClass($scheme)
{
if (isset(static::$schemeClasses[$scheme])) {
return static::$schemeClasses[$scheme];
} else {
return null;
}
}

/**
* Create a URI from a string
*
Expand Down

0 comments on commit 914239b

Please sign in to comment.