360i/sonno — Issue #3: Factory or factory method for resource creation
Author: vladar
Created: 2011-10-14 18:52:04+00:00
State: open

It would be great to have more control over resource instance creation. Factory or even simple protected factory method in Application class would work just fine (e.g. $this->_createResource($reflClass) vs $reflClass->newInstance()).

I plan to use simple Dependency Injection container in app and it requires custom logic for resource instance creation.

Can submit pull request, but in this case please let me know if you'd prefer factory or simple factory method.