clean up base directory of phpunit stuff.

This commit is contained in:
Taylor Otwell
2012-02-07 15:33:34 -06:00
parent d36aa51292
commit 428257758d
5 changed files with 50 additions and 184 deletions

View File

@@ -39,6 +39,19 @@ class Bundle {
* @return array
*/
public static function detect($path)
{
$bundles = static::search($path);
return array_merge($bundles, require path('base').'bundles.php');
}
/**
* Detect all of the installed bundles from disk.
*
* @param string $path
* @return array
*/
protected static function search($path)
{
$bundles = array();