public function getStatus()
    {
        $reports = [];
        $solrConnections = GeneralUtility::makeInstance(ConnectionManager::class)->getAllConnections();

        foreach ($solrConnections as $solrConnection) {
            $adminService = $solrConnection->getAdminService();

            if ($adminService->ping() && $adminService->getSolrconfigName() != self::RECOMMENDED_SOLRCONFIG_VERSION) {
                $variables = ['solr' => $adminService, 'recommendedVersion' => self::RECOMMENDED_SOLRCONFIG_VERSION];
                $report = $this->getRenderedReport('SolrConfigStatus.html', $variables);
                $status = GeneralUtility::makeInstance(
                    Status::class,
                    /** @scrutinizer ignore-type */ 'Solrconfig Version',
                    /** @scrutinizer ignore-type */ 'Unsupported solrconfig.xml',
                    /** @scrutinizer ignore-type */ $report,
                    /** @scrutinizer ignore-type */ Status::WARNING
                );

                $reports[] = $status;
            }
        }

        return $reports;
    }
public function getStatus()
    {
        $reports = [];
        $solrConnections = GeneralUtility::makeInstance(ConnectionManager::class)->getAllConnections();

        foreach ($solrConnections as $solrConnection) {
            $adminService = $solrConnection->getAdminService();

            if ($adminService->ping() && $adminService->getSolrconfigName() != self::RECOMMENDED_SOLRCONFIG_VERSION) {
                $variables = ['solr' => $adminService, 'recommendedVersion' => self::RECOMMENDED_SOLRCONFIG_VERSION];
                $report = $this->getRenderedReport('SolrConfigStatus.html', $variables);
                $status = GeneralUtility::makeInstance(
                    Status::class,
                    /** @scrutinizer ignore-type */ 'Solrconfig Version',
                    /** @scrutinizer ignore-type */ 'Unsupported solrconfig.xml',
                    /** @scrutinizer ignore-type */ $report,
                    /** @scrutinizer ignore-type */ Status::WARNING
                );

                $reports[] = $status;
            }
        }

        return $reports;
    }
public function getStatus ( ) { $ reports = [ ] ; $ solrConnections = GeneralUtility :: makeInstance ( ConnectionManager :: class ) -> getAllConnections ( ) ; foreach ( $ solrConnections as $ solrConnection ) { $ adminService = $ solrConnection -> getAdminService ( ) ; if ( $ adminService -> ping ( ) && $ adminService -> getSolrconfigName ( ) != self :: RECOMMENDED_SOLRCONFIG_VERSION ) { $ variables = [ 'solr' => $ adminService , 'recommendedVersion' => self :: RECOMMENDED_SOLRCONFIG_VERSION ] ; $ report = $ this -> getRenderedReport ( 'SolrConfigStatus.html' , $ variables ) ; $ status = GeneralUtility :: makeInstance ( Status :: class , /** @scrutinizer ignore-type */ 'Solrconfig Version' , /** @scrutinizer ignore-type */ 'Unsupported solrconfig.xml' , /** @scrutinizer ignore-type */ $ report , /** @scrutinizer ignore-type */ Status :: WARNING ) ; $ reports [ ] = $ status ; } } return $ reports ; }
Compiles a collection of solrconfig version checks against each configured
Solr server. Only adds an entry if a solrconfig other than the
recommended one was found.
Compiles a collection of solrconfig version checks against each configured Solr server . Only adds an entry if a solrconfig other than the recommended one was found .