|
@@ -95,7 +95,7 @@ class AnalyzeServiceReferencesPass implements RepeatablePassInterface
|
|
$this->graph->connect(
|
|
$this->graph->connect(
|
|
$this->currentId,
|
|
$this->currentId,
|
|
$this->currentDefinition,
|
|
$this->currentDefinition,
|
|
- (string) $argument,
|
|
|
|
|
|
+ $this->getDefinitionId((string) $argument),
|
|
$this->getDefinition((string) $argument),
|
|
$this->getDefinition((string) $argument),
|
|
$argument
|
|
$argument
|
|
);
|
|
);
|
|
@@ -114,6 +114,13 @@ class AnalyzeServiceReferencesPass implements RepeatablePassInterface
|
|
* @return Definition The definition related to the supplied id
|
|
* @return Definition The definition related to the supplied id
|
|
*/
|
|
*/
|
|
private function getDefinition($id)
|
|
private function getDefinition($id)
|
|
|
|
+ {
|
|
|
|
+ $id = $this->getDefinitionId($id);
|
|
|
|
+
|
|
|
|
+ return null === $id ? null : $this->container->getDefinition($id);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private function getDefinitionId($id)
|
|
{
|
|
{
|
|
while ($this->container->hasAlias($id)) {
|
|
while ($this->container->hasAlias($id)) {
|
|
$id = (string) $this->container->getAlias($id);
|
|
$id = (string) $this->container->getAlias($id);
|
|
@@ -123,6 +130,6 @@ class AnalyzeServiceReferencesPass implements RepeatablePassInterface
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
- return $this->container->getDefinition($id);
|
|
|
|
|
|
+ return $id;
|
|
}
|
|
}
|
|
}
|
|
}
|