Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Mink should be a singleton service #60

Open
elnur opened this issue May 18, 2014 · 1 comment
Open

Mink should be a singleton service #60

elnur opened this issue May 18, 2014 · 1 comment

Comments

@elnur
Copy link

elnur commented May 18, 2014

Currently Mink is a prototype service and I've lost several hours figuring out why the hell I'm getting different sessions whenever I ask Mink to give me the default session.

It turned out that since Mink is a prototype service, I was getting a new instance of Mink each time I asked it from the container.

Since Mink itself is just a fancy factory, it should be a singleton.

@redstar504
Copy link

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants