From 524375781e1dc687598dc368037a3180791a688e Mon Sep 17 00:00:00 2001 From: Pavel Date: Sun, 6 May 2012 12:19:13 +0400 Subject: [PATCH] Added Bundle::expand() method. Signed-off-by: Pavel --- laravel/bundle.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/laravel/bundle.php b/laravel/bundle.php index b6f614e9..2519fb88 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -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; + } + } \ No newline at end of file