code: public function getExtensions(Container $app)
      {
          $directories = $this->findExtensionsDirectories($app);
  
          foreach ($directories as $directory) {
              $extensionName                                  = $directory->getRelativePathname();
              $this->extensions[$extensionName]['name']       = $extensionName;
              $this->extensions[$extensionName]['pathName']   = $directory->getPathName();
          }
  
          return $this->extensions;
      }
docs: Return an array of extensions
  
  @param Container $app
  
  @return array