@@ 609-618 (lines=10) @@ | ||
606 | */ |
|
607 | ||
608 | foreach ($metadataCollection as $alias => $metadata) { |
|
609 | foreach ($metadata->propertiesMetadata as $property => $propertyMetadata) { |
|
610 | $dependency = strtolower($propertyMetadata->dependency); |
|
611 | if (array_key_exists($dependency, $implementsByAlias)) { |
|
612 | $propertyMetadata->dependency = $implementsByAlias[$dependency][0]; |
|
613 | } elseif (array_key_exists($dependency, $serviceAliasesByClass)) { |
|
614 | $propertyMetadata->dependency = $serviceAliasesByClass[$dependency][0]; |
|
615 | } else { |
|
616 | ||
617 | } |
|
618 | } |
|
619 | foreach ($metadata->methodsMetadata as $method => $methodMetadata) { |
|
620 | foreach ($methodMetadata->dependencies as $argument => $dependency) { |
|
621 | $dependency = strtolower($dependency); |
|
@@ 620-629 (lines=10) @@ | ||
617 | } |
|
618 | } |
|
619 | foreach ($metadata->methodsMetadata as $method => $methodMetadata) { |
|
620 | foreach ($methodMetadata->dependencies as $argument => $dependency) { |
|
621 | $dependency = strtolower($dependency); |
|
622 | if (array_key_exists($dependency, $implementsByAlias)) { |
|
623 | $methodMetadata->dependencies[$argument] = $implementsByAlias[$dependency][0]; |
|
624 | //$methodMetadata->parametersMetadata[$argument]->dependency = $implementsByAlias[$dependency][0]; |
|
625 | } elseif (array_key_exists($dependency, $serviceAliasesByClass)) { |
|
626 | $methodMetadata->dependencies[$argument] = $serviceAliasesByClass[$dependency][0]; |
|
627 | //$methodMetadata->parametersMetadata[$argument]->dependency = $serviceAliasesByClass[$dependency][0]; |
|
628 | } else { |
|
629 | ||
630 | } |
|
631 | } |
|
632 | } |