Say No to Composer! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: Say No to Composer! (/showthread.php?tid=62108) |
RE: Say No to Composer! - francis94c - 12-17-2019 (06-10-2015, 07:40 AM)MatthewSchenker Wrote: Greetings, What do you think about Splint, A Package and Dependency Manager for Code Igniter at https://splint.cynobit.com ? RE: Say No to Composer! - francis94c - 12-17-2019 (06-10-2015, 01:24 PM)ivantcholakov Wrote: PS: For achieving autoloading, if somebody finds a way to trick $this->load->lang('language_file'); he/she will be the master of the Universe. :-) This is very possible with Class Overloading (https://www.php.net/manual/en/language.oop5.overloading.php)... I've been thinking of making something like this possible with Splint (https://splint.cynobit.com) You can do this by extending the Loader class Extend one of you core classes (The Loader) by creating a MY_Loader.php file in your application/core folder Then define a __get() function in the class and try to resolve aliases that don't exits.... In your case of a language file, you can override the lang() method of the Loader class and go from there |