Re: Proposing PSR 18 'Singleton' Pre-Draft

2017-02-20 Thread Daniel Plainview
> I suppose I was thinking 'How should one implement for maximum portability?' The irony here is that singleton makes portability harder by itself. This "pattern" be avoided as much as possible especially for external API between libraries. I don't see reason to standardize it. On Monday, Febru

Re: Proposing PSR 18 'Singleton' Pre-Draft

2017-02-20 Thread Korvin Szanto
Hi Richard, Perhaps moving forward we have an opportunity to include more code in our recommendations, and I think that's likely a good thing. With that said, I would think with containerization being a big thing in PHP these days, singletons are going to be a tough sell. I think something like th