/** * {@inheritdoc} */ public function getPropertyValue(\ReflectionProperty $property) { $name = $property->getName(); if (isset($this->values[$name])) { return $this->values[$name]; } return $this->fallback->getPropertyValue($property); }
/** * {@inheritdoc} */ public function getPropertyValue(\ReflectionProperty $property) { $class = $this->reflectionTools->getPropertyClass($property); if ($class == Request::class) { return $this->request; } $name = $property->getName(); if (isset($this->parameters[$name])) { return $this->parameters[$name]; } return $this->fallbackResolver->getPropertyValue($property); }