ds-site/Configuration/Services.yaml
Daniel Siepmann 8bcdec5d94 Finally migrate RSS Feed
Misusing the sitemap implementation was a bad idea and broke for every
major update.

I now finally migrate to custom implementation which should remove the
issues for future.
2024-02-07 18:45:17 +01:00

82 lines
2.5 KiB
YAML

imports:
- {resource: Services/Tracking.yaml}
services:
_defaults:
autowire: true
autoconfigure: true
public: false
DanielSiepmann\DsSite\:
resource: '../Classes/*'
querybuilder.pages:
class: 'TYPO3\CMS\Core\Database\Query\QueryBuilder'
factory:
- '@TYPO3\CMS\Core\Database\ConnectionPool'
- 'getQueryBuilderForTable'
arguments:
- 'pages'
DanielSiepmann\DsSite\Frontend\RssFeed\BlogPostsDataProvider:
public: true
DanielSiepmann\DsSite\Backend\PreviewRenderer\Video:
public: true
DanielSiepmann\DsSite\Frontend\DataProcessing\CategoriesCounts:
public: true
arguments:
$queryBuilder: '@querybuilder.pages'
# Widgets
dashboard.widget.site_ownrss:
class: 'TYPO3\CMS\Dashboard\Widgets\RssWidget'
arguments:
$cache: '@cache.dashboard.rss'
$options:
feedUrl: 'https://daniel-siepmann.de/rss-feed/blog-posts.xml'
limit: 3
tags:
- name: dashboard.widget
identifier: 'ownRss'
groupNames: 'typo3'
title: 'Own RSS Feed'
description: 'RSS Feed of Blog Posts'
iconIdentifier: 'content-widget-rss'
height: 'medium'
width: 'small'
dashboard.widget.sysLogErrors:
class: 'TYPO3\CMS\Dashboard\Widgets\BarChartWidget'
arguments:
$dataProvider: '@TYPO3\CMS\Dashboard\Widgets\Provider\SysLogErrorsDataProvider'
$buttonProvider: '@TYPO3\CMS\Dashboard\Widgets\Provider\SysLogButtonProvider'
tags:
- name: dashboard.widget
identifier: 'sysLogErrors'
groupNames: 'systemInfo'
title: 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:widgets.sysLogErrors.title'
description: 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:widgets.sysLogErrors.description'
iconIdentifier: 'content-widget-chart-bar'
height: 'medium'
width: 'small'
# Events
DanielSiepmann\DsSite\EventListener\AddFurtherMetadataToFile:
public: true
tags:
- name: event.listener
identifier: 'AddFurtherMetadataToFile'
event: TYPO3\CMS\Core\Resource\Event\EnrichFileMetaDataEvent
after: 'languageAndWorkspaceOverlay'
DanielSiepmann\DsSite\EventListener\PageLayoutHeader:
tags:
- name: event.listener
event: TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent
DanielSiepmann\DsSite\EventListener\ContentSecurityPolicyMutation:
tags:
- name: event.listener
event: TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\PolicyMutatedEvent