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 this would best benefit the community as an open
source project perhaps on composer that people can use if they want. That
way if it gains serious traction you'll have had feedback and a solid proof
of the idea that people want to not have to think about how they work with
singletons.

Some things that would be good to pay attention to as you do this is
implementing other PSRs (like PSR-1 and 2 and PSR-11), ensuring your
contracts are defined in something that is typehint-able (you can't
typehint on traits), and perhaps thinking about how you can invert the
responsibility of bootstrapping the singleton that is being used.

Thanks for your interest in the FIG, I hope to hear from you more in the
future!

Best wishes,
Korvin

On Sun, Feb 19, 2017 at 6:35 PM Richard T. Miles <tmiles...@gmail.com>
wrote:

> I suppose I was thinking 'How should one implement for maximum
> portability?' A Skeleton system requires the use of methods that can not
> be defined in a standard interface ( static members ). I do consider myself
> a bit novice; however, the intention of the singleton isn't to limit the
> creative process of the developer. I believe storing data in skeleton
> pattern is a `Cleaner` abstraction model than a container system. I
> definitely want to hear what the communities thoughts on the matter are.
> I understand PHP-Fig tries to leave the creative process open to the next
> innovation, and it may be that this abstraction is to detailed; however, I
> figured I would try to add some code to this great community :)
>
> Thanks,
> Richard Miles
>
> On Sunday, February 19, 2017 at 7:59:11 PM UTC-6, Korvin Szanto wrote:
>
> Hi Richard,
> I took a really fast look at the repo since I'm currently waiting for a
> plane. I noticed that this seems to be more of an implementation than a set
> of interfaces to standardize on. Are you wanting to standardize the
> implementation?
>
> Thanks,
> Korvin
>
> On Sun, Feb 19, 2017 at 5:55 PM Richard T. Miles <tmil...@gmail.com>
> wrote:
>
> Hello to everyone here at PHP-FIG!
>
> I have been working on 'Singleton' in my spare time and think it may have
> some use in this community.
> I am a Computer Science student at the University of North Texas so
> development starts and stops pretty
> sporadically ( 1 am and coffee ). I think it finally has enough content to
> be presentable under a 'Pre-draft'
> context.
>
> Singleton Github Repository:
> https://github.com/RichardTMiles/Singleton-Standard
>
> All comments and constructive criticism welcome!
>
> Thanks for your time,
> Richard Miles
>
> --
> You received this message because you are subscribed to the Google Groups
> "PHP Framework Interoperability Group" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to php-fig+u...@googlegroups.com.
> To post to this group, send email to php...@googlegroups.com.
>
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/php-fig/19954bdc-3c2d-4dc4-a4d8-eee58c9891ec%40googlegroups.com
> <https://groups.google.com/d/msgid/php-fig/19954bdc-3c2d-4dc4-a4d8-eee58c9891ec%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PHP Framework Interoperability Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to php-fig+unsubscr...@googlegroups.com.
> To post to this group, send email to php-fig@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/php-fig/255df385-98b9-42a4-b98d-00be86c57e1b%40googlegroups.com
> <https://groups.google.com/d/msgid/php-fig/255df385-98b9-42a4-b98d-00be86c57e1b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To post to this group, send email to php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/CANeXGWWb9KNSkQ06nymoi_TC0XtG7wBi9Sx-0UhACYorrn81Vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to