commit
fdac5e843f
|
@ -461,4 +461,16 @@ public static function names()
|
||||||
return array_keys(static::$bundles);
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue