code: public function getRootDir(): string
      {
          if (null === $this->rootDir) {
              $this->rootDir = $this->getProjectDir().'/app';
          }
  
          return $this->rootDir;
      }
docs: {@inheritdoc}
  
  @deprecated since Symfony 4.2, use getProjectDir() instead