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
1 changed files with 12 additions and 0 deletions

View File

@ -451,4 +451,16 @@ public static function names()
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;
}
}