Having methods, that create new classes calls for DIC usage, which in fact (if Application would be aware of it) automatically will become service locator as in Symfony or ZendFramework2.