| Línea 44... |
Línea 44... |
| 44 |
|
44 |
|
| 45 |
// If it's a compiled entry, then there is a method in this class
|
45 |
// If it's a compiled entry, then there is a method in this class
|
| 46 |
if ($method !== null) {
|
46 |
if ($method !== null) {
|
| 47 |
// Check if we are already getting this entry -> circular dependency
|
47 |
// Check if we are already getting this entry -> circular dependency
|
| - |
|
48 |
if (isset($this->entriesBeingResolved[$id])) {
|
| 48 |
if (isset($this->entriesBeingResolved[$id])) {
|
49 |
$idList = implode(" -> ", [...array_keys($this->entriesBeingResolved), $id]);
|
| 49 |
throw new DependencyException("Circular dependency detected while trying to resolve entry '$id'");
|
50 |
throw new DependencyException("Circular dependency detected while trying to resolve entry '$id': Dependencies: " . $idList);
|
| 50 |
}
|
51 |
}
|
| Línea 51... |
Línea 52... |
| 51 |
$this->entriesBeingResolved[$id] = true;
|
52 |
$this->entriesBeingResolved[$id] = true;
|
| 52 |
|
53 |
|