UnionOfRAD/lithium — pull request #382 by jails (2012-03-18 15:17:38+00:00)
Title: Media refactoring. The Media class can now manage all base url's assets.

Delegate assets management to the Media class. i.e :
- The `webroot` option of `Libraries::add()` should be managed by the Media class
- BC break : the current Media::assets would be Media::extensions
- `Media::assets` add assets configurations.

Example of use :

Media::assets('appcdn', array(
'path' => null,
'base' => 'http://my.cdn.com/assets'
));

Media::asset('style', 'css', array('assets' => 'appcdn'));

Output : 'http://my.cdn.com/assets/css/style.css'

This way, it will be easier to manage plugin's assets and or share plugin's assets between plugins.
Using `Media::assets()` you can easily override default assets location to fit your needs.