Merge pull request #636 from ProgerXP/patch-bexpand

Branch::expand()
This commit is contained in:
Taylor Otwell 2012-08-13 12:08:50 -07:00
commit fdac5e843f
1 changed files with 12 additions and 0 deletions

View File

@ -461,4 +461,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;
}
}