src/Valkyrja/Container/Annotations/NativeContainerAnnotations.php
protected function setServiceProperties(Annotation $annotation): void
    {
        if (null === $annotation->getProperty()) {
            $parameters =
                $this->getMethodReflection(
                    $annotation->getClass(),
                    $annotation->getMethod() ?? '__construct'
                )
                     ->getParameters();

            // Set the dependencies
            $annotation->setDependencies(
                $this->getDependencies(...$parameters)
            );
        }

        $annotation->setMatches();
    }
protected function setServiceProperties(Annotation $annotation): void
    {
        if (null === $annotation->getProperty()) {
            $parameters =
                $this->getMethodReflection(
                    $annotation->getClass(),
                    $annotation->getMethod() ?? '__construct'
                )
                     ->getParameters();

            // Set the dependencies
            $annotation->setDependencies(
                $this->getDependencies(...$parameters)
            );
        }

        $annotation->setMatches();
    }
Set the properties for a service annotation.

@param Annotation $annotation

@throws \ReflectionException

@return void