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???

Filip Procházka
Moderator | 4668
+
0
-

yes

David Grudl
Nette Core | 8229
+
+1
-

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

leonardoap
Member | 17
+
0
-

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