Use typehinting instead of $this->getRequest()

$this->getRequest() is deprecated as of 2.4.