lib/ExternalUriGenerator/UriCollection.php
public function addCollection(UriCollection $collection)
    {
        // we need to remove all uris with the same names first because just replacing them
        // would not place the new uri at the end of the merged array
        foreach ($collection->all() as $name => $uri) {
            unset($this->uris[$name]);
            $this->uris[$name] = $uri;
        }

        $this->resources = array_merge($this->resources, $collection->getResources());
    }
public function addCollection(UriCollection $collection)
    {
        // we need to remove all uris with the same names first because just replacing them
        // would not place the new uri at the end of the merged array
        foreach ($collection->all() as $name => $uri) {
            unset($this->uris[$name]);
            $this->uris[$name] = $uri;
        }

        $this->resources = array_merge($this->resources, $collection->getResources());
    }
Adds a uri collection at the end of the current set by appending all
uris of the added collection.

@param UriCollection $collection A UriCollection instance

@api