context on presenter is deprecated?

Notice: This thread is very old.
leonardoap
Member | 17
+
+1
-

Hi, i saw that the presenter getService() method is deprecated, but what about context

$this->context->models // $this is a presenter and the models could be whatever

is too deprecated???

David Grudl
Generous Backer | 7166
+
+1
-

It is deprecated, but it will work for very long time.

Comments

leonardoap:

so i just have to use @inject ?? i think

6 years ago