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);
    }