Le 25/02/2021 à 21:41, Nikita Popov a écrit :
Could you please share the use case(s) you have in mind for this?

Regards,
Nikita

Hello,

I don't have a concrete example in mind right now, it happens I do need this sometime.

It's mitigated by the fact I need it in most case when accessing class reflection in order to introspect it and generate code or documentation along or I do need to explode the whole class name to introspect namespace parts.

Nevertheless, it still happens that I do magic with class names without using the reflection, one use case that comes to mind is a class name to logical name mapper I've written for converting PHP domain class names to logical PHP-free message names for a bus in an heterogeneous infra based upon a naming convention (using the namespaces as a basis for string replacement).

--

Pierre

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to