DI\Definition\Source\DefinitionArray::addDefinitions PHP Method

addDefinitions() public method

public addDefinitions ( array $definitions )
$definitions array DI definitions in a PHP array indexed by the definition name.
    public function addDefinitions(array $definitions)
    {
        // The newly added data prevails
        // "for keys that exist in both arrays, the elements from the left-hand array will be used"
        $this->definitions = $definitions + $this->definitions;
        // Clear cache
        $this->wildcardDefinitions = null;
    }