What is the best way to get static methods to access the dependency injector?
You can use the method Phalcon\DI::getDefault() to get the latest DI created in an static way.
https://docs.phalcon.io/en/latest/reference/di.html#accessing-the-di-in-a-static-way
Sorry! Missed it while reading the docs!