TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Reports\Controller\ContentStatisticsController;
|
||||
use TYPO3\CMS\Reports\Controller\RecordStatisticsController;
|
||||
use TYPO3\CMS\Reports\Controller\StatusReportController;
|
||||
|
||||
/**
|
||||
* Definitions for modules provided by EXT:reports
|
||||
*/
|
||||
return [
|
||||
'system_reports' => [
|
||||
'parent' => 'admin',
|
||||
'position' => ['after' => 'system_log'],
|
||||
'access' => 'admin',
|
||||
'path' => '/module/system/reports',
|
||||
'iconIdentifier' => 'module-reports',
|
||||
'labels' => 'reports.modules.overview',
|
||||
'showSubmoduleOverview' => true,
|
||||
],
|
||||
'system_reports_status' => [
|
||||
'parent' => 'system_reports',
|
||||
'access' => 'admin',
|
||||
'path' => '/module/system/reports/status',
|
||||
'iconIdentifier' => 'module-reports',
|
||||
'labels' => 'reports.modules.status',
|
||||
'routes' => [
|
||||
'_default' => [
|
||||
'target' => StatusReportController::class . '::handleRequest',
|
||||
],
|
||||
],
|
||||
],
|
||||
'system_reports_statistics' => [
|
||||
'parent' => 'system_reports',
|
||||
'access' => 'admin',
|
||||
'path' => '/module/system/reports/statistics',
|
||||
'iconIdentifier' => 'module-reports',
|
||||
'labels' => 'reports.modules.statistics',
|
||||
'routes' => [
|
||||
'_default' => [
|
||||
'target' => RecordStatisticsController::class . '::handleRequest',
|
||||
],
|
||||
],
|
||||
],
|
||||
'system_reports_contentstatistics' => [
|
||||
'parent' => 'system_reports',
|
||||
'access' => 'admin',
|
||||
'path' => '/module/system/reports/content-statistics',
|
||||
'iconIdentifier' => 'module-reports',
|
||||
'labels' => [
|
||||
'title' => 'reports.messages:contentStatistics.title',
|
||||
'shortDescription' => 'reports.messages:contentStatistics.shortDescription',
|
||||
'description' => 'reports.messages:contentStatistics.description',
|
||||
],
|
||||
'routes' => [
|
||||
'_default' => [
|
||||
'target' => ContentStatisticsController::class . '::handleRequest',
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace TYPO3\CMS\Reports;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $container, ContainerBuilder $containerBuilder) {
|
||||
$containerBuilder->registerForAutoconfiguration(StatusProviderInterface::class)->addTag('reports.status');
|
||||
};
|
||||
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
_defaults:
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
public: false
|
||||
|
||||
TYPO3\CMS\Reports\:
|
||||
resource: '../Classes/*'
|
||||
# Tasks require EXT:scheduler to be installed, ignore for now.
|
||||
exclude: '../Classes/Task'
|
||||
|
||||
TYPO3\CMS\Reports\Registry\StatusRegistry:
|
||||
arguments:
|
||||
- !tagged_iterator reports.status
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
use TYPO3\CMS\Reports\Task\SystemStatusUpdateTask;
|
||||
|
||||
defined('TYPO3') or die();
|
||||
|
||||
if (isset($GLOBALS['TCA']['tx_scheduler_task'])) {
|
||||
ExtensionManagementUtility::addTCAcolumns(
|
||||
'tx_scheduler_task',
|
||||
[
|
||||
'tx_reports_notification_email' => [
|
||||
'label' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_updateTaskField_notificationEmails',
|
||||
'config' => [
|
||||
'type' => 'text',
|
||||
'rows' => 3,
|
||||
'cols' => 50,
|
||||
'required' => true,
|
||||
'placeholder' => 'admin@example.com',
|
||||
],
|
||||
],
|
||||
'tx_reports_notification_all' => [
|
||||
'label' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_updateTaskField_notificationAll',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 0,
|
||||
],
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
ExtensionManagementUtility::addRecordType(
|
||||
[
|
||||
'label' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_updateTaskTitle',
|
||||
'description' => 'LLL:EXT:reports/Resources/Private/Language/locallang_reports.xlf:status_updateTaskDescription',
|
||||
'value' => SystemStatusUpdateTask::class,
|
||||
'icon' => 'mimetypes-x-tx_scheduler_task_group',
|
||||
'group' => 'reports',
|
||||
],
|
||||
'
|
||||
--div--;core.form.tabs:general,
|
||||
tasktype,
|
||||
task_group,
|
||||
description,
|
||||
tx_reports_notification_email,
|
||||
tx_reports_notification_all,
|
||||
--div--;core.form.tabs:timing,
|
||||
--palette--;;execution,
|
||||
--div--;core.form.tabs:access,
|
||||
disable,
|
||||
--div--;core.form.tabs:extended,',
|
||||
[],
|
||||
'',
|
||||
'tx_scheduler_task'
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user