overrideCoreByPackage no longer functions in 8.2

Permalink
So what's the way to achieve what this did, then?

Was doing this to help prevent user from inadvertently accessing functions they could destroy their C5 site with:
// override dash RHS panel
        $objEnv = Environment::get();
        $objEnv->overrideCoreByPackage('elements/panels/dashboard.php', $this);
        $objEnv->overrideCoreByPackage('views/panels/add.php', $this);

surefyre
 
surefyre replied on at Permalink Best Answer Reply 1 Attachment
surefyre
Need a tumbleweed icon
guythomas replied on at Permalink Reply
guythomas
No doubt. The deprecation of this method has caused a big problem for me as well.