EllisLab/CodeIgniter — pull request #1477 by kwoodfriend (2012-06-14 01:40:32+00:00)
Title: Passing object name to insatiate as when auto-loading libraries and models.

`$this->load->library()` and `$this->load->model()` allow passing an object name to instantiate as, but the autoload config file doesn't provide a way of doing this.

Modifications would allow someone to pass a single-item array as an item within the $autoload['libraries'] or $autoload['models']. The array's key would become the library's name, and the value would become the instantiated object's name:

`$autoload['libraries'] = array(array('form_validation' => 'validation'), 'email', ...);`