How to get presenter path (Module:Presenter) from presenter class?

mystik
Member | 308
+
0
-

I am working on new feature for phpstan-nette extension that would check validity of parameters passed to link-creating methods. It could be done for absolute presenter paths and current presenter action links. But I struggle with relative presenter paths because I need a way to know on which module current presenter is to be able to derive target presenter.

In some implememtations of presenter factory there was deprecated unresolvePresenterClass method that did it. But it was only in some implementations not in IPresenterFactory interface and in last vetsion it is completely removed.

Is there any replacement for this?