context on presenter is deprecated?

Notice: This thread is very old.
Member | 17

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

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



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

6 years ago