/**
  * @inheritdoc
  */
 public function resolve(ParameterBag $unresolvedParameters, ParameterBag $injectedParameters = null) : ParameterBag
 {
     if (null === $injectedParameters) {
         $injectedParameters = new ParameterBag();
     }
     foreach ($injectedParameters as $injectedParameterKey => $injectedParameterValue) {
         if ($unresolvedParameters->has($injectedParameterKey)) {
             $injectedParameters = $injectedParameters->without($injectedParameterKey);
         }
     }
     return $this->resolver->resolve($unresolvedParameters, $injectedParameters);
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  */
 public function resolve(FixtureSet $fixtureSet) : ResolvedFixtureSet
 {
     $parameters = $this->parameterResolver->resolve($fixtureSet->getLoadedParameters(), $fixtureSet->getInjectedParameters());
     $fixtures = $this->fixtureResolver->resolve($fixtureSet->getFixtures());
     return new ResolvedFixtureSet($parameters, $fixtures, $fixtureSet->getObjects());
 }