public static function handles($uri)
	{
		$uri = rtrim($uri, '/').'/';

		foreach (static::$bundles as $key => $value)
		{
			if (isset($value['handles']) and starts_with($uri, $value['handles'].'/') or $value['handles'] == '/')
			{
				return $key;
			}
		}

		return DEFAULT_BUNDLE;
	}
public static function handles($uri)
	{
		$uri = rtrim($uri, '/').'/';

		foreach (static::$bundles as $key => $value)
		{
			if (isset($value['handles']) and starts_with($uri, $value['handles'].'/') or $value['handles'] == '/')
			{
				return $key;
			}
		}

		return DEFAULT_BUNDLE;
	}
public static function handles ( $ uri ) { $ uri = rtrim ( $ uri , '/' ) . '/' ; foreach ( static :: $ bundles as $ key => $ value ) { if ( isset ( $ value [ 'handles' ] ) and starts_with ( $ uri , $ value [ 'handles' ] . '/' ) or $ value [ 'handles' ] == '/' ) { return $ key ; } } return DEFAULT_BUNDLE ; }
Determine which bundle handles the given URI.

The default bundle is returned if no other bundle is assigned.

@param  string  $uri
@return string
Determine which bundle handles the given URI .