joomla / joomla-framework

[READ-ONLY] This repo is no longer in active development. Please see https://github.com/joomla-framework for the individual Framework packages.
http://framework.joomla.org
GNU General Public License v2.0
189 stars 140 forks source link

Add alias support to DI #264

Closed dongilbert closed 11 years ago

dongilbert commented 11 years ago

Alias support is something that I've been meaning to add to the DI container. It's useful, as shown by the JTracker project needing to extend the container in order to add it themselves.

This also makes the private class properties protected so that devs can safely extend our container and still have access to the properties.

The new additions retain the 100% code coverage: http://d.pr/i/DxOc

piotr-cz commented 11 years ago

Could you add update how to use aliases to the DI documentation?

dongilbert commented 11 years ago

Good point - thanks for reminding me.

dongilbert commented 11 years ago

I've created a documentation outline, it's going to take a little bit to get it all written out. I'll post back when it's ready to be merged.

asika32764 commented 11 years ago

I'm waiting this features for a long time.

dongilbert commented 11 years ago

This is ready to merge.

piotr-cz commented 11 years ago

Thank you! :+1: