Form Override

Permalink
Hello
I'm using the below code to override the form helper in my 5.6 packages controller.
public function on_start() {
        $env = Environment::get();
   $env->overrideCoreByPackage('helpers/form.php', $this);
}

But in 5.7, helpers are deprecated. So I'm not sure how to achieve the same goal.

Can anyone help me, please!

ronyDdeveloper