From 38da9f47b95dd0e382976c936a71dde37ea3e46d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 9 Feb 2012 23:32:19 -0600 Subject: [PATCH] added bundle option --- laravel/bundle.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/laravel/bundle.php b/laravel/bundle.php index 14c27b3f..8147f4ca 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -408,6 +408,20 @@ public static function get($bundle) return (object) array_get(static::$bundles, $bundle); } + /** + * Get an option for a given bundle. + * + * @param string $bundle + * @param string $option + * @return mixed + */ + public static function option($bundle, $option) + { + $bundle = static::get($bundle); + + if ( ! is_null($bundle)) return array_get($bundle, $option); + } + /** * Get all of the installed bundles for the application. *