Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete for class configuration #114

Open
tomaszkane opened this issue Jan 19, 2022 · 1 comment
Open

Autocomplete for class configuration #114

tomaszkane opened this issue Jan 19, 2022 · 1 comment
Labels
type:feature New feature

Comments

@tomaszkane
Copy link

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,
            ]),
        ],
    ],
];
@samdark
Copy link
Member

samdark commented Jan 20, 2022

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

@samdark samdark added the type:feature New feature label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants