src/Protocol/Http/Visitor/HttpProtocolChainVisitor.php
public function visit(Notification $notification, Request $request): Request
    {
        // Clone all visitors because \SplPriorityQueue remove object after iteration
        $visitors = clone $this->visitors;

        foreach ($visitors as $visitor) {
            $request = $visitor->visit($notification, $request);
        }

        return $request;
    }
public function visit(Notification $notification, Request $request): Request
    {
        // Clone all visitors because \SplPriorityQueue remove object after iteration
        $visitors = clone $this->visitors;

        foreach ($visitors as $visitor) {
            $request = $visitor->visit($notification, $request);
        }

        return $request;
    }
public function visit ( Notification $ notification , Request $ request ) : Request { // Clone all visitors because \SplPriorityQueue remove object after iteration $ visitors = clone $ this -> visitors ; foreach ( $ visitors as $ visitor ) { $ request = $ visitor -> visit ( $ notification , $ request ) ; } return $ request ; }
{@inheritdoc}
{