src/Qlake/Config/Config.php
protected function parseKey($mixedKey)
	{
		if (preg_match('/^((?P<alias>[\w]+)::)?(?P<name>\w+)(\.(?P<key>\w+))?$/', $mixedKey, $matches) !==1)
		{
			throw new ClearException("Invalid Config Variable Name. Name Must Be Like [alias::name.key] Or [name.key].", 4);
		}

		$alias = $matches['alias'];
		$name  = $matches['name'];
		$key   = $matches['key'] ?: null;

		return [$alias ?: 'default', $name, $key];
	}
protected function parseKey($mixedKey)
	{
		if (preg_match('/^((?P<alias>[\w]+)::)?(?P<name>\w+)(\.(?P<key>\w+))?$/', $mixedKey, $matches) !==1)
		{
			throw new ClearException("Invalid Config Variable Name. Name Must Be Like [alias::name.key] Or [name.key].", 4);
		}

		$alias = $matches['alias'];
		$name  = $matches['name'];
		$key   = $matches['key'] ?: null;

		return [$alias ?: 'default', $name, $key];
	}
protected function parseKey ( $ mixedKey ) { if ( preg_match ( '/^((?P<alias>[\w]+)::)?(?P<name>\w+)(\.(?P<key>\w+))?$/' , $ mixedKey , $ matches ) !== 1 ) { throw new ClearException ( "Invalid Config Variable Name. Name Must Be Like [alias::name.key] Or [name.key]." , 4 ) ; } $ alias = $ matches [ 'alias' ] ; $ name = $ matches [ 'name' ] ; $ key = $ matches [ 'key' ] ? : null ; return [ $ alias ? : 'default' , $ name , $ key ] ; }
Parse requested mixed-key and split alias, name and key

@param string $mixedKey
@return array An array like [alias, name, key]
Parse requested mixed - key and split alias name and key