config icon indicating copy to clipboard operation
config copied to clipboard

Autocomplete for class configuration

Open tomaszkane opened this issue 3 years ago • 1 comments

Hi, Yii2 has very useful plugin for best/most popular PHP IDE - PhpStorm, https://plugins.jetbrains.com/plugin/9388-yii2-support

Any chance to provide one for Yii3 to have autocomplete in config files - to set class properties, __construnct() etc. ?

Main goal is to type faster, do less typos and got mistakes highlighted.

Examples:

<?php

return [
    'components' => [
        'db' => [
            'class' => \my\Db::class,
            'name' => 'foo', // <-- autocomplete
            'password' => 'boo', // <-- autocomplete
        ],
    ],
];
return [
    LoggerInterface::class => [
        'class' => Logger::class,
        '__construct()' => [ // <-- autocomplete
            'targets' => ReferencesArray::from([ // <-- autocomplete
                FileTarget::class,
            ]),
        ],
    ],
];

tomaszkane avatar Jan 19 '22 21:01 tomaszkane

If possible, we should do it with PhpStorm advanced metadata: https://www.jetbrains.com/help/phpstorm/ide-advanced-metadata.html

samdark avatar Jan 20 '22 07:01 samdark