I need to instantiate a class by just passing its name and trying to instantiate it in several different nemapaces until I can. I have a class with a namespace, but I can not get the namespace to instantiate it, but the problem is that this class will not always have that same namespace.
I have the namespace:
App \ Program
I wanted to list all namespaces from the namespace quoted above, eg:
App \ Program \ Test
App \ Program \ Control
App \ Program \ Domain \ Base
Is there any way to list this?