code: public function init()
      {
          if ($this->request === null) {
              $this->request = Yii::$app->getRequest();
          }
          if ($this->response === null) {
              $this->response = Yii::$app->getResponse();
          }
      }
docs: {@inheritdoc}