D
D
deepin2019-08-09 17:57:01
phpstorm
deepin, 2019-08-09 17:57:01

How to autocomplete registry components?

'app_model' => 'app\models\App'
I start calling an approximate array of the registry $this->registry->app_model->тут_какой-то_метод
no autocomplete already at the app_model set stage , and of course the method also without autocomplete well and highlights the storm - the access field of the magic method
can somehow be configured for the storm to autocomplete magic?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2019-08-09
@JhaoDa

If the registry is generated dynamically, only Metadata . $this->registry->app_modelyou can't, but $this->registry->get('app_model')you can.
An example is  barryvdh/laravel-ide-helper .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question