DI\Definition\ObjectDefinition::mergeMethodInjections PHP Method

mergeMethodInjections() private method

private mergeMethodInjections ( ObjectDefinition $definition )
$definition ObjectDefinition
    private function mergeMethodInjections(ObjectDefinition $definition)
    {
        foreach ($definition->methodInjections as $methodName => $calls) {
            if (array_key_exists($methodName, $this->methodInjections)) {
                $this->mergeMethodCalls($calls, $methodName);
            } else {
                // Add
                $this->methodInjections[$methodName] = $calls;
            }
        }
    }