Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dashboard functionality to custom extension t3_messenger_dashboard #63

Merged
merged 11 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: t3-messenger
type: typo3
docroot: .Build/Web
php_version: "8.1"
php_version: "8.2"
webserver_type: nginx-fpm
router_http_port: "80"
router_https_port: "443"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php_linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ 7.4, 8.0, 8.1 ]
php-versions: [ 7.4, 8.0, 8.1, 8.2 ]
steps:
- uses: actions/checkout@v4

Expand Down
57 changes: 0 additions & 57 deletions Classes/Dashboard/Widgets/ListOfFailedMessagesWidget.php

This file was deleted.

30 changes: 0 additions & 30 deletions Classes/Dashboard/Widgets/Provider/FailedMessagesDataProvider.php

This file was deleted.

28 changes: 0 additions & 28 deletions Classes/DependencyInjection/Compiler/FailureReceiverPass.php

This file was deleted.

116 changes: 0 additions & 116 deletions Classes/Domain/Dto/FailedMessage.php

This file was deleted.

64 changes: 0 additions & 64 deletions Classes/Repository/FailedMessageRepository.php

This file was deleted.

25 changes: 0 additions & 25 deletions Configuration/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
use Ssch\T3Messenger\Command\ShowConfigurationCommand;
use Ssch\T3Messenger\CommandToHandlerMapper;
use Ssch\T3Messenger\ConfigurationModuleProvider\MessengerProvider;
use Ssch\T3Messenger\Dashboard\Widgets\ListOfFailedMessagesWidget;
use Ssch\T3Messenger\Dashboard\Widgets\Provider\FailedMessagesDataProvider;
use Ssch\T3Messenger\DependencyInjection\Compiler\FailureReceiverPass;
use Ssch\T3Messenger\DependencyInjection\Compiler\MessengerAlterTableListenerPass;
use Ssch\T3Messenger\DependencyInjection\Compiler\MessengerCommandToHandlerMapperPass;
use Ssch\T3Messenger\DependencyInjection\Compiler\MessengerMailerPass;
Expand All @@ -31,7 +28,6 @@
use Ssch\T3Messenger\Middleware\ServerRequestContextMiddleware;
use Ssch\T3Messenger\Middleware\ValidationMiddleware;
use Ssch\T3Messenger\Mime\BodyRenderer;
use Ssch\T3Messenger\Repository\FailedMessageRepository;
use Symfony\Component\Console\ConsoleEvents;
use Symfony\Component\DependencyInjection\ChildDefinition;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
Expand Down Expand Up @@ -419,26 +415,6 @@ static function (ChildDefinition $definition, AsMessageHandler $attribute): void
'command' => 't3_messenger:show-configuration',
]);

// Dashboard Integration
$services->set(FailedMessageRepository::class)->args([abstract_arg('failure_transports')]);
$services
->set('dashboard.widget.failedMessages')
->class(ListOfFailedMessagesWidget::class)
->arg('$dataProvider', service(FailedMessagesDataProvider::class))
->arg('$view', service('dashboard.views.widget'))
->tag(
'dashboard.widget',
[
'identifier' => 'failedMessages',
'groupNames' => 'news',
'title' => 'LLL:EXT:t3_messenger/Resources/Private/Language/locallang.xlf:widgets.failedMessages.title',
'description' => 'LLL:EXT:t3_messenger/Resources/Private/Language/locallang.xlf:widgets.failedMessages.description',
'iconIdentifier' => 'tx-messenger-failed-messages-icon',
'height' => 'large',
'width' => 'large',
]
);

// must be registered before removing private services as some might be listeners/subscribers
// but as late as possible to get resolved parameters
$containerBuilder->addCompilerPass($registerListenersPass, PassConfig::TYPE_BEFORE_REMOVING);
Expand All @@ -448,5 +424,4 @@ static function (ChildDefinition $definition, AsMessageHandler $attribute): void
$containerBuilder->addCompilerPass(new ConsoleCommandPass('console.command'));
$containerBuilder->addCompilerPass(new MessengerCommandToHandlerMapperPass());
$containerBuilder->addCompilerPass(new MessengerAlterTableListenerPass());
$containerBuilder->addCompilerPass(new FailureReceiverPass());
};
4 changes: 0 additions & 4 deletions Configuration/TypoScript/setup.typoscript

This file was deleted.

Loading