Skip to content

Commit fdac5e8

Browse files
committed
Merge pull request laravel#636 from ProgerXP/patch-bexpand
Branch::expand()
2 parents a7c2c25 + 5243757 commit fdac5e8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

laravel/bundle.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,4 +461,16 @@ public static function names()
461461
return array_keys(static::$bundles);
462462
}
463463

464+
/**
465+
* Expand given bundle path of form "[bundle::]path/...".
466+
*
467+
* @param string $path
468+
* @return string
469+
*/
470+
public static function expand($path)
471+
{
472+
list($bundle, $element) = static::parse($path);
473+
return static::path($bundle).$element;
474+
}
475+
464476
}

0 commit comments

Comments
 (0)