wppunk / WPPlugin

Boilerplate for WordPress plugin using autoload, coding standard, webpack, PHP/JS tests, etc.
MIT License
147 stars 25 forks source link

Incorrect PSR namespace? #5

Closed JoyceBabu closed 4 years ago

JoyceBabu commented 4 years ago

Autoload section of composer.json has the following entry

"PluginName\\Dependencies\\": "dependencies/psr/"

But isn't PSR dependencies loaded from PluginName\Vendor? I couldn't find any instances where PluginName\Dependencies is defined.

wppunk commented 4 years ago

@JoyceBabu Try to run the composer scoper command.

JoyceBabu commented 4 years ago

@JoyceBabu Try to run the composer scoper command.

composer scoper creates the namespaced vendor classes including PSR\* to dependencies\vendor\vendor\psr. The new namespace was PluginName\Vendor\Psr, and not PluginName\Dependencies.

wppunk commented 4 years ago

Oh, okay. This is just garbage. I'll remove it in the next release.