@@ 716-725 (lines=10) @@ | ||
713 | */ |
|
714 | ||
715 | foreach ($metadataCollection as $alias => $metadata) { |
|
716 | foreach ($metadata->propertiesMetadata as $property => $propertyMetadata) { |
|
717 | $dependency = strtolower($propertyMetadata->dependency); |
|
718 | if (array_key_exists($dependency, $implementsByAlias)) { |
|
719 | $propertyMetadata->dependency = $implementsByAlias[$dependency][0]; |
|
720 | } elseif (array_key_exists($dependency, $serviceAliasesByClass)) { |
|
721 | $propertyMetadata->dependency = $serviceAliasesByClass[$dependency][0]; |
|
722 | } else { |
|
723 | ||
724 | } |
|
725 | } |
|
726 | foreach ($metadata->methodsMetadata as $method => $methodMetadata) { |
|
727 | foreach ($methodMetadata->dependencies as $argument => $dependency) { |
|
728 | $dependency = strtolower($dependency); |
|
@@ 727-736 (lines=10) @@ | ||
724 | } |
|
725 | } |
|
726 | foreach ($metadata->methodsMetadata as $method => $methodMetadata) { |
|
727 | foreach ($methodMetadata->dependencies as $argument => $dependency) { |
|
728 | $dependency = strtolower($dependency); |
|
729 | if (array_key_exists($dependency, $implementsByAlias)) { |
|
730 | $methodMetadata->dependencies[$argument] = $implementsByAlias[$dependency][0]; |
|
731 | //$methodMetadata->parametersMetadata[$argument]->dependency = $implementsByAlias[$dependency][0]; |
|
732 | } elseif (array_key_exists($dependency, $serviceAliasesByClass)) { |
|
733 | $methodMetadata->dependencies[$argument] = $serviceAliasesByClass[$dependency][0]; |
|
734 | //$methodMetadata->parametersMetadata[$argument]->dependency = $serviceAliasesByClass[$dependency][0]; |
|
735 | } else { |
|
736 | ||
737 | } |
|
738 | } |
|
739 | } |