cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[NFR]\Phalcon\DI implements Traversable

Open ephrin opened this issue 13 years ago • 2 comments

\Phalcon\DI is a very powefull thing and can be used in different ways. So one of that is simple collection with named items. But there no way to Traverse all DI container. Please consider this as Feature Request.

ephrin avatar Aug 23 '13 08:08 ephrin

Maybe I did not understand what you mean, my English is not good.

$services = $this->getDI()->getServices();

foreach($services as $s) {
}

dreamsxin avatar Aug 23 '13 10:08 dreamsxin

I agree. It is even more convenient.

ephrin avatar Sep 22 '13 05:09 ephrin