Added Bundle::expand() method.

Signed-off-by: Pavel <proger.xp@gmail.com>
This commit is contained in:
Pavel
2012-05-06 12:19:13 +04:00
parent 1192abe39c
commit 524375781e

View File

@@ -451,4 +451,16 @@ class Bundle {
return array_keys(static::$bundles);
}
/**
* Expand given bundle path of form "[bundle::]path/...".
*
* @param string $path
* @return string
*/
public static function expand($path)
{
list($bundle, $element) = static::parse($path);
return static::path($bundle).$element;
}
}