vendredi 12 mars 2021

Reflecting into a class without FQCN

Is it possible to reflect into a class without knowing the fully qualified class name?

e.g. instead of this...

(new ReflectionClass(\App\Modules\Companies\Models\Company::class));

...something like this?

(new ReflectionClass('Company'));




Aucun commentaire:

Enregistrer un commentaire