dss-web / ninjaforms-uploads-azure

Add support for offloading Ninja Forms Uploads to the Microsoft Azure cloud.
MIT License
0 stars 0 forks source link

Ensure classes not covered by autoloaders have no local-relationship #6

Closed Clorith closed 3 years ago

Clorith commented 3 years ago

Currently there are calls to use NF_FU_* classes (for example use NF_FU_Fields_Upload which is being extended by the plugins own Fields_Upload class), but since the code is namespaced, these are looked for within the currently active namespace, where the classes do not exist since they belong to a different plugin.

Classes that are not explicitly covered by the plugins autoloader need to be declared as part of the global namespace (prefixed with \), since the autoloader can not be built on each site that uses the plugin, and therefore has no guarantee that it will find the class otherwise, leading to fatal errors.

fnpen commented 3 years ago

Fixed, thank you, I changed to \NF_FU_Fields_Upload\