Closed marcusgaius closed 1 year ago
Yeah private plugins are identified by the fact that their handle begins with an underscore. Just updated the validation error to clarify that, for the next release:
> Plugin handle: [_foo] foo
Private plugin handles must begin with an underscore.
After I have reported the issue, I realized that the underscore might be the defining characteristic of a private plugin. An error response for the prompt is the perfect fit.
Generator 1.5.0 is out with that change!
Description
While making a private plugin, I opted for a handle without an underscore. The generator ignored it, and added an underscore to the beginning of the handle anyway at the end. Whether this is an intended behavior or not, I couldn't say, however, it seems to be counterintuitive, and should specify how private plugins will always get a leading underscore at the end or something like that.
Related key in
composer.json
:Steps to reproduce
php craft make plugin --with-docblocks
Plugin Handle
, type a handle without an underscore, ietest-plugin
Additional info