10up / plugin-scaffold

DEPRECATED. Use https://github.com/10up/wp-scaffold

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Require vendor/autoload by default

dainelmawer opened this issue · comments

After playing around with the plugin scaffold a little bit, and asking Darshan for some insight, it became apparent that using require_once 'vendor/autoload.php'; is detrimental to autoloading classes. This ticket may just be a lack of experience from my side, but is there any reason why the requiring of autoload.php is not added to the plugin architecture by default?

@daveross PR #51 fixed this

Great. Let's close this out.

I was hesitant to add the autoloading to the scaffold itself until I saw if people were actually using the autoloader. I'm glad to see people are eager to adopt it.