V8 How to go about overriding a core job from a package

Permalink
Hello.

I would like to override the 'Check Automated Groups' job from a package.

It works when I have copy 'concrete/check_automated_groups.php' to the Applications/Jobs folder and change the namespace, but I cannot seem to get it to work from a package/Jobs folder.

Is there a procedure that will allow me to do this apart from copying the override into /Applications/Jobs. And if this is the only way, then what is the safe way to do this?

Thanks.

tangent
 
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
v8 is less permissive about overrides from packages.
I usually create a light weight intermediary that I can copy to the /application/xxx dir. The intermediary overrides the core and calls the actual replacement/modified job in my package.

Depending on the project, I would sometimes write an installer to copy as part of the package install and similar update and uninstall, with checks that its my override and not any other my package is messing with.
tangent replied on at Permalink Reply
tangent
Hi John.

I guess you are referring to:https://www.concrete5.org/community/forums/customizing_c5/overriding...

I'll have a look at making sense of it.

Thanks.
Russell.