Added Bundle::expand() method.
Signed-off-by: Pavel <proger.xp@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user