Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,339 members, 7,811,986 topics. Date: Monday, 29 April 2024 at 04:47 AM

Code Igniter Services Or A Third Party DI Container - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Code Igniter Services Or A Third Party DI Container (158 Views)

Code Igniter Vs Larevel Which Is The Best?? / Code Igniter/js Developer Needed For Urgent Employment / A Thread For PHP Code Igniter Framework Tutorial (2) (3) (4)

(1) (Reply) (Go Down)

Code Igniter Services Or A Third Party DI Container by chukwuebuka65(m): 4:14pm On Oct 28, 2023
So a friend running a small business asked me to develop a website for him. Looking for a light-weight php framework, I decided to do it in codeigniter. But going through the documentation, I noticed it doesn’t come with a DI container out of the box but rather provides a service class for creating your objects . Although the service class resolves and provides all the dependencies the class will need, I still don’t like fact that you will manually call the service class from inside the controller. Do DI containers affect application performance? If not, why is codeigniter doing it differently.
Re: Code Igniter Services Or A Third Party DI Container by silento(m): 6:17pm On Oct 28, 2023
It won't affect anything
Re: Code Igniter Services Or A Third Party DI Container by chukwuebuka65(m): 6:28pm On Oct 28, 2023
silento:
It won't affect anything

I quess they just want to do something different then.
Re: Code Igniter Services Or A Third Party DI Container by qtguru(m): 6:33pm On Oct 28, 2023
chukwuebuka65:
So a friend running a small business asked me to develop a website for him. Looking for a light-weight php framework, I decided to do it in codeigniter. But going through the documentation, I noticed it doesn’t come with a DI container out of the box but rather provides a service class for creating your objects . Although the service class resolves and provides all the dependencies the class will need, I still don’t like fact that you will manually call the service class from inside the controller. Do DI containers affect application performance? If not, why is codeigniter doing it differently.
DI is more of a design pattern.
Re: Code Igniter Services Or A Third Party DI Container by chukwuebuka65(m): 7:54pm On Oct 28, 2023
qtguru:

DI is more of a design pattern.

Ok.

(1) (Reply)

I Need To Someone Who Can Train Me On Data Analyst / I Need Nigeria Residential Proxies / Tools For Creating A Drupal Website Documentation

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.