How to do it to work autocomplete for Dependency Injector in netbeans?
is this what you are looking for: https://forum.phalcon.io/discussion/6001/phalcon-in-netbeans ?
Thanks for reply but this not solve my problem.
in service.php I have defined
$session = new SessionAdapter();
and if I try write in controller or view
session class is not prompted.
the only way for now is everytime you use a variable to do so
/** @var \MyNameSpace\MyClass $data */
$session = $this->di->get("session");
there is an idea for the moment, for jetbrains ( phpstorm ) plugin that will help with this kind of stuff
Thanks for information.
I currently use very similar solution
$session = &$this->session;
/** @var \Phalcon\Session\Adapter $session */
but this is unconfortable and not elegant :(
$this->session; what is $this? Use injectable class or just set propety phpdoc.
If it's not prompted then most likely you don't have ide stubs?