Multiple service containers

I think I've just found an interesting issue.

If an application is using two separate DI's which DI will be used for instance in:

Is there a specified rule for this bahaviour?

It should use first one. If you want to change default DI (in reallity Service Locator than DI container) you must run Phalcon\DI::reset() before creating second one.

Hi Tomek. Ahh Indeed, I've missed this one!

Thanks, Dzięki