added bundle option
This commit is contained in:
parent
ebcf34e3b4
commit
38da9f47b9
|
@ -408,6 +408,20 @@ public static function get($bundle)
|
||||||
return (object) array_get(static::$bundles, $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.
|
* Get all of the installed bundles for the application.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue