Matthias\SymfonyServiceDefinitionValidator\ConstructorResolver::resolveFactoryServiceWithMethod PHP Method

resolveFactoryServiceWithMethod() private method

private resolveFactoryServiceWithMethod ( $factoryServiceId, $factoryMethod )
    private function resolveFactoryServiceWithMethod($factoryServiceId, $factoryMethod)
    {
        $factoryDefinition = $this->containerBuilder->findDefinition($factoryServiceId);
        $factoryClass = $this->resultingClassResolver->resolve($factoryDefinition);
        if (!method_exists($factoryClass, $factoryMethod)) {
            throw new MethodNotFoundException($factoryClass, $factoryMethod);
        }
        return new \ReflectionMethod($factoryClass, $factoryMethod);
    }