Override /helpers/file.php by Package

Permalink
Hi i'm trying to override the /helpers/file.php with a package but all i get is an "Fatal error: Call to undefined method FileHelper::littlefunction()" error

in /packages/mypackage/controller.php :
public function on_start() {
      $env = Environment::get();
      $env->overrideCoreByPackage('helpers/file.php',$this);
}


in /packages/mypackage/helpers/file.php
class FileHelper extends Concrete5_Helper_File {
   public function littlefunction(){
      return 'test';
   }
}


call helper:
$f = Loader::helper('file','mypackage');
echo $f->littlefunction();

or
$f = Loader::helper('file');
echo $f->littlefunction();