Given
<?php
$di = new Phalcon\Di\FactoryDefault\Cli;
$di->setShared('myCustomService', new MyCustomService);
$console = new Phalcon\Cli\Console;
$console->setDI($di);
$arguments = [];
foreach ($argv as $k => $arg) {
if ($k === 1) {
$arguments["task"] = $arg;
} elseif ($k === 2) {
$arguments["action"] = $arg;
} elseif ($k >= 3) {
$arguments["params"][] = $arg;
}
}
$di->setShared('console', $console);
// Handle incoming arguments
$console->handle($arguments);
How does one get IDE hinting/autocomplete for $this->myCustomService->doSomething()
? I have the ide stubs in place and things like $this->getDI()
and the like already work. It's just the things that I add that aren't getting hinted and would be nice.