fabpot/Pimple — Issue #26: Allow DIC consumer to request a shared or new instance
Author: papayasoft
Created: 2012-01-15 05:09:02+00:00
State: open

It appears that Pimple requires me to specify at config whether or not a container-managed object is to be a shared instance or a new instance. I seem to recall that in some other DIC's, there is a way for the DIC _consumer_ to specify that he wants the container to return a shared instance or a new instance, perhaps shared being the default.

Does Pimple allow similar? If not, would it be useful?

Perhaps this is a naive question. If so, please be gentle. ;-)