• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Service singletons

#4
I'm not 100% sure what you're asking for. If you're asking about taking away the possibility of getting a new instance from a core service, then I'm not a fan. In your own services you can do whatever you like, but part of the benefit of a service is having it take care of any dependency injection, etc.
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply


Messages In This Thread
Service singletons - by tony.a - 09-10-2019, 09:24 AM
RE: Service singletons - by kilishan - 09-10-2019, 12:34 PM
RE: Service singletons - by tony.a - 09-11-2019, 03:37 PM
RE: Service singletons - by kilishan - 09-11-2019, 07:31 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.