beberlei / yadif

Yet Another (PHP) Dependency Injection Framework
Other
37 stars 1 forks source link

Add method to clear all or some services #2

Closed beberlei closed 14 years ago

beberlei commented 15 years ago

Sometimes services have lots of internal state which is expensive memory wise, especially for long running scripts like cron jobs.

There should be a method to clear a specific component service or clear all the currently instantiated components.