original_string: public function discoverCommand()
      {
          $setup = $this->objectManager->get(BackendConfigurationManager::class)->getTypoScriptSetup();
          /** @var TypoScriptService $typoscriptService */
          $typoscriptService = $this->objectManager->get(TypoScriptService::class);
          $config            = $typoscriptService->convertTypoScriptArrayToPlainArray((array)$setup['plugin.']['tx_twcomponentlibrary.']);
  
          // Register common stylesheets & scripts
          FluidTemplate::addCommonStylesheets($config['settings']['stylesheets']);
          FluidTemplate::addCommonHeaderScripts($config['settings']['headerScripts']);
          FluidTemplate::addCommonFooterScripts($config['settings']['footerScripts']);
  
          echo json_encode(Scanner::discoverAll(), JSON_PRETTY_PRINT);
      }
code: public function discoverCommand()
      {
          $setup = $this->objectManager->get(BackendConfigurationManager::class)->getTypoScriptSetup();
          /** @var TypoScriptService $typoscriptService */
          $typoscriptService = $this->objectManager->get(TypoScriptService::class);
          $config            = $typoscriptService->convertTypoScriptArrayToPlainArray((array)$setup['plugin.']['tx_twcomponentlibrary.']);
  
          // Register common stylesheets & scripts
          FluidTemplate::addCommonStylesheets($config['settings']['stylesheets']);
          FluidTemplate::addCommonHeaderScripts($config['settings']['headerScripts']);
          FluidTemplate::addCommonFooterScripts($config['settings']['footerScripts']);
  
          echo json_encode(Scanner::discoverAll(), JSON_PRETTY_PRINT);
      }
code_tokens: public function discoverCommand ( ) { $ setup = $ this -> objectManager -> get ( BackendConfigurationManager :: class ) -> getTypoScriptSetup ( ) ; /** @var TypoScriptService $typoscriptService */ $ typoscriptService = $ this -> objectManager -> get ( TypoScriptService :: class ) ; $ config = $ typoscriptService -> convertTypoScriptArrayToPlainArray ( ( array ) $ setup [ 'plugin.' ] [ 'tx_twcomponentlibrary.' ] ) ; // Register common stylesheets & scripts FluidTemplate :: addCommonStylesheets ( $ config [ 'settings' ] [ 'stylesheets' ] ) ; FluidTemplate :: addCommonHeaderScripts ( $ config [ 'settings' ] [ 'headerScripts' ] ) ; FluidTemplate :: addCommonFooterScripts ( $ config [ 'settings' ] [ 'footerScripts' ] ) ; echo json_encode ( Scanner :: discoverAll ( ) , JSON_PRETTY_PRINT ) ; }
docstring: Discover and extract all components
docstring_tokens: Discover and extract all components