src/ReplaceableTrait.php
public function replace($handler, $bindTo = true)
    {
        if ($bindTo && $handler instanceof Closure) {
            $handler = $handler->bindTo($this, $this);
        }
        $this->handler = $handler;
    }
public function replace($handler, $bindTo = true)
    {
        if ($bindTo && $handler instanceof Closure) {
            $handler = $handler->bindTo($this, $this);
        }
        $this->handler = $handler;
    }
public function replace ( $ handler , $ bindTo = true ) { if ( $ bindTo && $ handler instanceof Closure ) { $ handler = $ handler -> bindTo ( $ this , $ this ) ; } $ this -> handler = $ handler ; }
Replace class handle method.

@param callable $handler
@param bool     $bindTo
Replace class handle method .