I am trying to check which classes exist in a namespace, and I have been hinted at using reflection. but it seems like PHP just lacks classes / functions to pre-reflect the namespace.
any suggestions?
First, take a look at the docs recommendations that you are right. As a result, you probably have to list everything ( get_declared_classes ), and then for each individual class call ReflectionClass::inNamespace()
ReflectionClass::inNamespace()
You can get_declared_classes() find out the classes that were defined in your namespace.
get_declared_classes()
Source: https://habr.com/ru/post/1399072/More articles:USB receive data from device - cFind end of line in regex using notepad ++ - regexHow to display javascript hint when mouseover over scrollbar? - javascriptHow do you convert from scientific notation to Oracle SQL? - sqlOSGi Linux Headless Deployment - eclipsematchMedia flakey in Firefox? - javascriptManual input not saved in Android DatePicker (Dialog) - androidScalatra 2.1 Akka Futures Case Study - asynchronousJavascript: the earliest moment to add an event listener to a document - javascriptgetting line numbers that have been changed - pythonAll Articles