lib/classes/Swift/Message.php
public function detachSigner(Swift_Signer $signer)
    {
        if ($signer instanceof Swift_Signers_HeaderSigner) {
            foreach ($this->headerSigners as $k => $headerSigner) {
                if ($headerSigner === $signer) {
                    unset($this->headerSigners[$k]);

                    return $this;
                }
            }
        } elseif ($signer instanceof Swift_Signers_BodySigner) {
            foreach ($this->bodySigners as $k => $bodySigner) {
                if ($bodySigner === $signer) {
                    unset($this->bodySigners[$k]);

                    return $this;
                }
            }
        }

        return $this;
    }
public function detachSigner(Swift_Signer $signer)
    {
        if ($signer instanceof Swift_Signers_HeaderSigner) {
            foreach ($this->headerSigners as $k => $headerSigner) {
                if ($headerSigner === $signer) {
                    unset($this->headerSigners[$k]);

                    return $this;
                }
            }
        } elseif ($signer instanceof Swift_Signers_BodySigner) {
            foreach ($this->bodySigners as $k => $bodySigner) {
                if ($bodySigner === $signer) {
                    unset($this->bodySigners[$k]);

                    return $this;
                }
            }
        }

        return $this;
    }
public function detachSigner ( Swift_Signer $ signer ) { if ( $ signer instanceof Swift_Signers_HeaderSigner ) { foreach ( $ this -> headerSigners as $ k => $ headerSigner ) { if ( $ headerSigner === $ signer ) { unset ( $ this -> headerSigners [ $ k ] ) ; return $ this ; } } } elseif ( $ signer instanceof Swift_Signers_BodySigner ) { foreach ( $ this -> bodySigners as $ k => $ bodySigner ) { if ( $ bodySigner === $ signer ) { unset ( $ this -> bodySigners [ $ k ] ) ; return $ this ; } } } return $ this ; }
Detach a signature handler from a message.

@return $this
Detach a signature handler from a message .