Closed khalwat closed 7 years ago
Manually adding these key/values to the craftcms/plugins.php
does fix it:
'hasCpSettings' => true,
'hasCpSection' => true,
It looks like they are just plain missing from the plugin-installer
: https://github.com/craftcms/plugin-installer/blob/master/src/Installer.php#L121
heh, okay, it looks like this was fixed in develop
. Closing & pulling.
@khalwat I don't remember us fixing anything related to this recently; where are you seeing the fix?
It was user-error. I had a very old version of the plugin-installer
back from pre-beta days, I needed to manually update it via git pull
since I'm still using that setup locally on one of my computers.
Ah ok :)
I switched over from manually installing a local plugin to installing it via composer via
path
. It all works, except theextra
array key is missing. Here's what thecraftcms/plugins.php
looks like:but here's what the plugin's actual
composer.json
looks like:The plugin otherwise works fine, but things like
hasCpSettings
andhasCpSection
from theextra
array are not picked up, and therefor not used.It looks like some of the properties from the
extra
array are flattened over into thecraftcms/plugins.php
config, but not all of them.