Skip to content

Commit

Permalink
[TASK] Reports: Move registration into Service.yaml
Browse files Browse the repository at this point in the history
Migrate the registration of status classes.

Resolves: #3376
  • Loading branch information
3l73 authored and dkd-kaehm committed Oct 28, 2022
1 parent f9f4b09 commit f726d01
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
29 changes: 29 additions & 0 deletions Configuration/Services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,32 @@ services:
- name: event.listener
identifier: 'solr.index.pageIndexer.FrontendUserAuthenticator'
event: TYPO3\CMS\Frontend\Authentication\ModifyResolvedFrontendGroupsEvent

# Reports: Status
ApacheSolrForTypo3\Solr\Report\SiteHandlingStatus::class:
tags:
- name: reports.status
ApacheSolrForTypo3\Solr\Report\SchemaStatus::class:
tags:
- name: reports.status
ApacheSolrForTypo3\Solr\Report\SolrConfigStatus::class:
tags:
- name: reports.status
ApacheSolrForTypo3\Solr\Report\SolrConfigurationStatus::class:
tags:
- name: reports.status
ApacheSolrForTypo3\Solr\Report\SolrStatus::class:
tags:
- name: reports.status
ApacheSolrForTypo3\Solr\Report\SolrVersionStatus::class:
tags:
- name: reports.status
ApacheSolrForTypo3\Solr\Report\AccessFilterPluginInstalledStatus::class:
tags:
- name: reports.status
ApacheSolrForTypo3\Solr\Report\AllowUrlFOpenStatus::class:
tags:
- name: reports.status
ApacheSolrForTypo3\Solr\Report\FilterVarStatus::class:
tags:
- name: reports.status
13 changes: 0 additions & 13 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,6 @@
]
);

// registering reports
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['solr'] = [
\ApacheSolrForTypo3\Solr\Report\SiteHandlingStatus::class,
\ApacheSolrForTypo3\Solr\Report\SchemaStatus::class,
\ApacheSolrForTypo3\Solr\Report\SolrConfigStatus::class,
\ApacheSolrForTypo3\Solr\Report\SolrConfigurationStatus::class,
\ApacheSolrForTypo3\Solr\Report\SolrStatus::class,
\ApacheSolrForTypo3\Solr\Report\SolrVersionStatus::class,
\ApacheSolrForTypo3\Solr\Report\AccessFilterPluginInstalledStatus::class,
\ApacheSolrForTypo3\Solr\Report\AllowUrlFOpenStatus::class,
\ApacheSolrForTypo3\Solr\Report\FilterVarStatus::class,
];

// Register Context Sensitive Help (CSH) translation labels
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'pages',
Expand Down

0 comments on commit f726d01

Please sign in to comment.