public static function get(string $name, bool $getShared = true)
	{
		$class = $name;
		if (($pos = strrpos($name, '\\')) !== false)
		{
			$class = substr($name, $pos + 1);
		}

		if (! $getShared)
		{
			return self::createClass($name);
		}

		if (! isset( self::$instances[$class] ))
		{
			self::$instances[$class] = self::createClass($name);
		}
		return self::$instances[$class];
	}
public static function get(string $name, bool $getShared = true)
	{
		$class = $name;
		if (($pos = strrpos($name, '\\')) !== false)
		{
			$class = substr($name, $pos + 1);
		}

		if (! $getShared)
		{
			return self::createClass($name);
		}

		if (! isset( self::$instances[$class] ))
		{
			self::$instances[$class] = self::createClass($name);
		}
		return self::$instances[$class];
	}
public static function get ( string $ name , bool $ getShared = true ) { $ class = $ name ; if ( ( $ pos = strrpos ( $ name , '\\' ) ) !== false ) { $ class = substr ( $ name , $ pos + 1 ) ; } if ( ! $ getShared ) { return self :: createClass ( $ name ) ; } if ( ! isset ( self :: $ instances [ $ class ] ) ) { self :: $ instances [ $ class ] = self :: createClass ( $ name ) ; } return self :: $ instances [ $ class ] ; }
Create new configuration instances or return
a shared instance

@param string  $name      Configuration name
@param boolean $getShared Use shared instance

@return mixed|null
Create new configuration instances or return a shared instance