Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter4 - Event pass by ???
#5

(10-02-2018, 01:07 PM)kilishan Wrote: Actually, there is some cleanup on that Autoload classmap file that needs to be done. Like most of it needs to be ripped out, I believe. It was originally an experiment to see if it increased the performance at all having them all listed, but it doesn't seem to.

In general, though, you can't really override any class loaded that way. That's why we provide the Services for most things. We might need to re-look at how Events is loaded in.

However, there's nothing saying you have to extend it for your own use. If you've got something that's replacing it, just replace and use that for your own event system, leaving Events to CodeIgniter's internal hooks, if that works for you.

kilishan, thank you for your excellent reply and thank you for all of your hardwork on CodeIgniter 4.
What I was getting at with making events  arguments pass by reference was that instead of a simply triggering something like hooks are today. 
Adding the pass by reference would allow other CodeIgniter 4 developers to use events in more of a universal way to modify arguments sent in without the need to download another "events" class to provide this feature.

DMyers
Reply


Messages In This Thread
CodeIgniter4 - Event pass by ??? - by dmyers - 10-01-2018, 08:41 AM
RE: CodeIgniter4 - Event pass by ??? - by dmyers - 10-02-2018, 06:57 AM
RE: CodeIgniter4 - Event pass by ??? - by falko - 10-02-2018, 01:00 PM
RE: CodeIgniter4 - Event pass by ??? - by dmyers - 10-03-2018, 06:18 AM
RE: CodeIgniter4 - Event pass by ??? - by dmyers - 10-03-2018, 11:43 AM
RE: CodeIgniter4 - Event pass by ??? - by dmyers - 10-03-2018, 12:38 PM
RE: CodeIgniter4 - Event pass by ??? - by dmyers - 10-08-2018, 07:55 AM
RE: CodeIgniter4 - Event pass by ??? - by abrkof - 01-04-2020, 09:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB