Instead of this `$this->getRequest()` pass it as a parameter.