if ($definition->
isDeprecated()) { $deprecation =
$definition->
getDeprecation($id);
trigger_deprecation($deprecation['package'
],
$deprecation['version'
],
$deprecation['message'
]);
} $parameterBag =
$this->
getParameterBag();
$class =
$parameterBag->
resolveValue($definition->
getClass()) ?:
(['Closure', 'fromCallable'
] ===
$definition->
getFactory() ? 'Closure' : null
);
if (['Closure', 'fromCallable'
] ===
$definition->
getFactory() && ('Closure' !==
$class ||
$definition->
isLazy())) { $callable =
$parameterBag->
unescapeValue($parameterBag->
resolveValue($definition->
getArgument(0
)));
if ($callable instanceof Reference ||
$callable instanceof Definition
) { $callable =
[$callable, '__invoke'
];
} if (\
is_array($callable) && ( $callable[0
] instanceof Reference
||
$callable[0
] instanceof Definition && !
isset($inlineServices[spl_object_hash($callable[0
])]) )) { $initializer =
function D
) use ($callable, &
$inlineServices) { return $this->
doResolveServices($callable[0
],
$inlineServices);
};