propelorm/Propel2 — Issue #22: Removing the Propel Singleton
Author: hhamon
Created: 2011-10-22 11:05:12+00:00
State: open

Hi guys,

As we are moving to version 2, I think we should remove the Propel singleton and probably rename it to PropelRegistry like for the Doctrine ORM. That's way we can use an instance of PropelRegistry (or Propel\Registry) to store DatabaseConnection objects, configuration and so on.

If we have such a Registry class without any static methods, we will be able to inject it in any dependency injection containers (Pimple, Symfony DIC, ZF2 DIC...)

Are you in favor of that?