simple-autoloader-for-wordpress icon indicating copy to clipboard operation
simple-autoloader-for-wordpress copied to clipboard

Why are things outside my own plugin's directory getting autoloaded?

Open cliffordp opened this issue 7 years ago • 2 comments

image 2017-11-04 at 11 01 20 pm

cliffordp avatar Nov 05 '17 04:11 cliffordp

This likely depends on how your plugin is structured. If it's placing the autoloader in a location that's aware of all other plugins, then it will load them.

Conversely, another autoloader could be using it though the variable names look to map to how this autoloader loads this.

tommcfarlin avatar Nov 06 '17 21:11 tommcfarlin

I think I followed the README to the letter... rearranged my files around it...

Composer's autoloader can be limited to a namespace. Maybe that logic should be added? I wouldn't know how to code that to submit a PR, but I'd be appreciative. Until then, I think I'll try to get Composer's to work... give it a namespace and a directory(ies) to look in and have it do its thing.

cliffordp avatar Nov 07 '17 19:11 cliffordp