- $isNumeric = array_keys($arguments) === range(0, count($arguments) - 1);
-
- foreach ($arguments as $k => $argument) {
- if (is_array($argument)) {
- $arguments[$k] = $this->processArguments($argument, $inMethodCall, true);
- } elseif ($argument instanceof Reference) {
- $id = (string) $argument;
-
- $invalidBehavior = $argument->getInvalidBehavior();
- $exists = $this->container->has($id);
+ if ($value instanceof ServiceClosureArgument) {
+ $value->setValues($this->processValue($value->getValues(), 1, 1));
+ } elseif ($value instanceof ArgumentInterface) {
+ $value->setValues($this->processValue($value->getValues(), $rootLevel, 1 + $level));
+ } elseif ($value instanceof Definition) {
+ if ($value->isSynthetic() || $value->isAbstract()) {
+ return $value;
+ }
+ $value->setArguments($this->processValue($value->getArguments(), 0));
+ $value->setProperties($this->processValue($value->getProperties(), 1));
+ $value->setMethodCalls($this->processValue($value->getMethodCalls(), 2));
+ } elseif (is_array($value)) {
+ $i = 0;