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 (269 Views)
| Code Igniter Services Or A Third Party DI Container by chukwuebuka65(op): 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(op): 6:28pm On Oct 28, 2023 |
silento: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:DI is more of a design pattern. |
| Re: Code Igniter Services Or A Third Party DI Container by chukwuebuka65(op): 7:54pm On Oct 28, 2023 |
qtguru:Ok. |
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
Voxmart: Test Out My Ecommerce Website ( B2B, B2C And Classfied Method) • . • Drop Your Programming Related Issues. (logic Only)