src/Endpoint/PartitionEndpointProvider.php
public function getPartition($region, $service)
    {
        foreach ($this->partitions as $partition) {
            if ($partition->isRegionMatch($region, $service)) {
                return $partition;
            }
        }

        return $this->getPartitionByName($this->defaultPartition);
    }
public function getPartition($region, $service)
    {
        foreach ($this->partitions as $partition) {
            if ($partition->isRegionMatch($region, $service)) {
                return $partition;
            }
        }

        return $this->getPartitionByName($this->defaultPartition);
    }
public function getPartition ( $ region , $ service ) { foreach ( $ this -> partitions as $ partition ) { if ( $ partition -> isRegionMatch ( $ region , $ service ) ) { return $ partition ; } } return $ this -> getPartitionByName ( $ this -> defaultPartition ) ; }
Returns the partition containing the provided region or the default
partition if no match is found.

@param string $region
@param string $service

@return Partition
Returns the partition containing the provided region or the default partition if no match is found .