Reflection ve Metaprogramming
Reflection API ile runtime tip ve metot keşfi, attribute/annotation tabanlı konfigürasyon, dinamik proxy oluşturma ve dependency injection container'larında reflection kullanımı.
Reflection örneği
<?php
$rc = new ReflectionClass(SomeService::class);
$ctor = $rc->getConstructor();
$params = $ctor->getParameters();
foreach ($params as $p) { echo $p->getName(); }
?>