original_string: public static function discoverAll()
      {
          $components = [];
  
          // Run through all extensions
          foreach (ExtensionManagementUtility::getLoadedExtensionListArray() as $extensionKey) {
              $components = array_merge($components, self::discoverExtensionComponents($extensionKey));
          }
  
          return $components;
      }
code: public static function discoverAll()
      {
          $components = [];
  
          // Run through all extensions
          foreach (ExtensionManagementUtility::getLoadedExtensionListArray() as $extensionKey) {
              $components = array_merge($components, self::discoverExtensionComponents($extensionKey));
          }
  
          return $components;
      }
code_tokens: public static function discoverAll ( ) { $ components = [ ] ; // Run through all extensions foreach ( ExtensionManagementUtility :: getLoadedExtensionListArray ( ) as $ extensionKey ) { $ components = array_merge ( $ components , self :: discoverExtensionComponents ( $ extensionKey ) ) ; } return $ components ; }
docstring: Discover all components
  
  @return array Components
docstring_tokens: Discover all components