public function onPreHandleRequestWithCollection(Collection $collection) {
        $output = new ArrayCollection();
        foreach ($collection as $current) {
            $output->add($current);
        }
        return $output;
    }
public function onPreHandleRequestWithCollection(Collection $collection) {
        $output = new ArrayCollection();
        foreach ($collection as $current) {
            $output->add($current);
        }
        return $output;
    }
public function onPreHandleRequestWithCollection ( Collection $ collection ) { $ output = new ArrayCollection ( ) ; foreach ( $ collection as $ current ) { $ output -> add ( $ current ) ; } return $ output ; }
On pre handle request with collection.

@param Collection $collection The collection.
@return Collection Returns the cloned collection.
On pre handle request with collection .