Force autoloading a class without a name

I would like to be able to access all the classes that are in the context of my currently executable script. Unfortunately, the framework I use is aggressive with the use of autoloading and intentionally cancels the loading of classes along the execution path.

How can I, without knowing the class names, force all classes that have a registered function _autoload()

to load so that I can access them with get_declared_classes

or get their names?

+2


source to share


1 answer


Ok if autoloading features were added in spl_autoload_register()

, you should take a look spl_autoload_functions()

.




Alternatively, you can force all registered autoloaders to be spl_autoload_call()

called from .

+1


source







All Articles