src/Bundle/ListBundle.php
public function handle($request, HandlerInterface $next)
    {
        if ($this->isEmpty()) {
            return $request;
        }
        if ($this->shadow == false) {
            $bundle = clone $this;
            $bundle->store->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_DELETE);
            $this->shadow = true;

            return $next->handle($request, $bundle);
        }
        $handler = $this->frontPop();

        return $handler->handle($request, $this);
    }
public function handle($request, HandlerInterface $next)
    {
        if ($this->isEmpty()) {
            return $request;
        }
        if ($this->shadow == false) {
            $bundle = clone $this;
            $bundle->store->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_DELETE);
            $this->shadow = true;

            return $next->handle($request, $bundle);
        }
        $handler = $this->frontPop();

        return $handler->handle($request, $this);
    }
public function handle ( $ request , HandlerInterface $ next ) { if ( $ this -> isEmpty ( ) ) { return $ request ; } if ( $ this -> shadow == false ) { $ bundle = clone $ this ; $ bundle -> store -> setIteratorMode ( SplDoublyLinkedList :: IT_MODE_FIFO | SplDoublyLinkedList :: IT_MODE_DELETE ) ; $ this -> shadow = true ; return $ next -> handle ( $ request , $ bundle ) ; } $ handler = $ this -> frontPop ( ) ; return $ handler -> handle ( $ request , $ this ) ; }
Process a request using all stored handlers.

@param mixed            $request
@param HandlerInterface $next
@return mixed
Process a request using all stored handlers .