You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Compiler/InlineServiceDefinitionsPass.php
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,23 @@ public function setRepeatedPass(RepeatedPass $repeatedPass)
37
37
* Returns an array of all services inlined by this pass.
38
38
*
39
39
* @return array Service id strings
40
+
* @deprecated This method is deprecated as of 3.3 and will be removed in 4.0. Use getInlinedServiceIdData() instead.
40
41
*/
41
42
publicfunctiongetInlinedServiceIds()
43
+
{
44
+
@trigger_error(sprintf('%s is deprecated as of 3.3 and will be removed in 4.0. Use getInlinedServiceIdData() instead.', __METHOD__), E_USER_DEPRECATED);
45
+
46
+
returnarray_keys($this->inlinedServiceIds);
47
+
}
48
+
49
+
/**
50
+
* Returns an array of all services inlined by this pass.
51
+
*
52
+
* The key is the inlined service id and its value is the service it was inlined into.
53
+
*
54
+
* @return array
55
+
*/
56
+
publicfunctiongetInlinedServiceIdData()
42
57
{
43
58
return$this->inlinedServiceIds;
44
59
}
@@ -57,7 +72,7 @@ protected function processValue($value, $isRoot = false)
57
72
58
73
if ($this->isInlineableDefinition($id, $definition, $this->container->getCompiler()->getServiceReferenceGraph())) {
59
74
$this->container->log($this, sprintf('Inlined service "%s" to "%s".', $id, $this->currentId));
0 commit comments