Skip to content

Commit 4a17e6c

Browse files
Merge branch '7.4' into 8.0
* 7.4: [Form] Add resource tracking for type extension classes in FormPass [Mailer] Postal mailer transport apikey [FrameworkBundle] Fix phpstan false-positive about config/reference.php
2 parents 8f45af9 + 14a2318 commit 4a17e6c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Resource/ReflectionClassResource.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Config\Resource;
1313

1414
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
15+
use Symfony\Component\Form\FormTypeExtensionInterface;
1516
use Symfony\Contracts\Service\ServiceSubscriberInterface;
1617

1718
/**
@@ -211,5 +212,12 @@ private function generateSignature(\ReflectionClass $class): iterable
211212
yield ServiceSubscriberInterface::class;
212213
yield print_r($class->name::getSubscribedServices(), true);
213214
}
215+
216+
if (interface_exists(FormTypeExtensionInterface::class, false) && $class->isSubclassOf(FormTypeExtensionInterface::class)) {
217+
yield FormTypeExtensionInterface::class;
218+
foreach ($class->name::getExtendedTypes() as $key => $value) {
219+
yield $key.print_r($value, true);
220+
}
221+
}
214222
}
215223
}

0 commit comments

Comments
 (0)