Commit 52437578 authored by Pavel's avatar Pavel

Added Bundle::expand() method.

Signed-off-by: 's avatarPavel <proger.xp@gmail.com>
parent 1192abe3
......@@ -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;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment