Added Bundle::expand() method.
Signed-off-by: Pavel <proger.xp@gmail.com>
This commit is contained in:
parent
1192abe39c
commit
524375781e
|
|
@ -451,4 +451,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