public function removeMethodCall($method)
    {
        foreach ($this->calls as $i => $call) {
            if ($call[0] === $method) {
                unset($this->calls[$i]);
                break;
            }
        }

        return $this;
    }
public function removeMethodCall($method)
    {
        foreach ($this->calls as $i => $call) {
            if ($call[0] === $method) {
                unset($this->calls[$i]);
                break;
            }
        }

        return $this;
    }
public function removeMethodCall ( $ method ) { foreach ( $ this -> calls as $ i => $ call ) { if ( $ call [ 0 ] === $ method ) { unset ( $ this -> calls [ $ i ] ) ; break ; } } return $ this ; }
Removes a method to call after service initialization.

@param string $method The method name to remove

@return $this
Removes a method to call after service initialization .