CodeIgniter Forums

Full Version: re-thinking function names or acts on service() and shared_service()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Two functions, ``service()`` and ``shared_service()`` make somebody think that service class returns new instance typically. At first, it was right.
It is turned over by github issue #55. Now, Service class returns shared instance by default.

I think ``service()`` should return shared instance, but I cannot judge whether we should do or not do from now.
Yes, you're correct. It's long been on my mental to-do list Smile
Oh, dang! Sorry I forgot to let you know. My bad. But, you're welcome. Smile