How to cover system class with Binding.php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krzysztof.czereczon
    Junior Member
    • Aug 2021
    • 4

    How to cover system class with Binding.php?

    I need to move from fork of euroeko to plugin patter. I've made some major changes in Phone logic, like adding additional flags.
    Now I need some way to cover original class with my own class.

    $binder->bindImplementation(
    \Espo\Core\Utils\Database\Orm\FieldConverters\Phon e::class,
    \Espo\Modules\Custom\Utils\Database\Orm\FieldConve rters\Phone::class
    );

    I need to cover more of those classes.
Working...