public static function register($bundle, $config = array())
	{
		$defaults = array('handles' => null, 'auto' => false);

		// If the given configuration is actually a string, we will assume it is a
		// location and set the bundle name to match it. This is common for most
		// bundles that simply live in the root bundle directory.
		if (is_string($config))
		{
			$bundle = $config;

			$config = array('location' => $bundle);
		}

		// If no location is set, we will set the location to match the name of
		// the bundle. This is for bundles that are installed on the root of
		// the bundle directory so a location was not set.
		if ( ! isset($config['location']))
		{
			$config['location'] = $bundle;
		}

		static::$bundles[$bundle] = array_merge($defaults, $config);

		// It is possible for the developer to specify auto-loader mappings
		// directly on the bundle registration. This provides a convenient
		// way to register mappings without a bootstrap.
		if (isset($config['autoloads']))
		{
			static::autoloads($bundle, $config);
		}
	}
public static function register($bundle, $config = array())
	{
		$defaults = array('handles' => null, 'auto' => false);

		// If the given configuration is actually a string, we will assume it is a
		// location and set the bundle name to match it. This is common for most
		// bundles that simply live in the root bundle directory.
		if (is_string($config))
		{
			$bundle = $config;

			$config = array('location' => $bundle);
		}

		// If no location is set, we will set the location to match the name of
		// the bundle. This is for bundles that are installed on the root of
		// the bundle directory so a location was not set.
		if ( ! isset($config['location']))
		{
			$config['location'] = $bundle;
		}

		static::$bundles[$bundle] = array_merge($defaults, $config);

		// It is possible for the developer to specify auto-loader mappings
		// directly on the bundle registration. This provides a convenient
		// way to register mappings without a bootstrap.
		if (isset($config['autoloads']))
		{
			static::autoloads($bundle, $config);
		}
	}
public static function register ( $ bundle , $ config = array ( ) ) { $ defaults = array ( 'handles' => null , 'auto' => false ) ; // If the given configuration is actually a string, we will assume it is a // location and set the bundle name to match it. This is common for most // bundles that simply live in the root bundle directory. if ( is_string ( $ config ) ) { $ bundle = $ config ; $ config = array ( 'location' => $ bundle ) ; } // If no location is set, we will set the location to match the name of // the bundle. This is for bundles that are installed on the root of // the bundle directory so a location was not set. if ( ! isset ( $ config [ 'location' ] ) ) { $ config [ 'location' ] = $ bundle ; } static :: $ bundles [ $ bundle ] = array_merge ( $ defaults , $ config ) ; // It is possible for the developer to specify auto-loader mappings // directly on the bundle registration. This provides a convenient // way to register mappings without a bootstrap. if ( isset ( $ config [ 'autoloads' ] ) ) { static :: autoloads ( $ bundle , $ config ) ; } }
Register the bundle for the application.

@param  string  $bundle
@param  array   $config
@return void
Register the bundle for the application .