class Priority (View source)

Methods

merge(array $mine, MutableConfigCollectionInterface $theirs)

Merges an array of values into a collection

static array
mergeArray(array $highPriority, array $lowPriority)

Deep merges a high priorty array into a lower priority array, overwriting duplicate keys. If the keys are integers, then the merges acts like array_merge() and adds a new item.

Details

static MutableConfigCollectionInterface merge(array $mine, MutableConfigCollectionInterface $theirs)

Merges an array of values into a collection

Parameters

array $mine

Map of key to array with value and metadata sub-keys

MutableConfigCollectionInterface $theirs

Return Value

MutableConfigCollectionInterface

static array mergeArray(array $highPriority, array $lowPriority)

Deep merges a high priorty array into a lower priority array, overwriting duplicate keys. If the keys are integers, then the merges acts like array_merge() and adds a new item.

Parameters

array $highPriority
array $lowPriority

Return Value

array