Skip to content

Commit 3f85584

Browse files
authored
Merge pull request #53 from moufmouf/factory_on_public
Optimisation: checking only @factory annotation in public methods
2 parents b664bf3 + 8900c6f commit 3f85584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/GraphqliteCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function process(ContainerBuilder $container)
194194
if ($typeAnnotation !== null || $this->getAnnotationReader()->getExtendTypeAnnotation($reflectionClass) !== null) {
195195
$definition->setPublic(true);
196196
}
197-
foreach ($reflectionClass->getMethods() as $method) {
197+
foreach ($reflectionClass->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
198198
$factory = $reader->getFactoryAnnotation($method);
199199
if ($factory !== null) {
200200
$definition->setPublic(true);

0 commit comments

Comments
 (0)