thuecat/Configuration/Services.yaml
Daniel Siepmann 8663d5a759
Add support for additional images added via TYPO3 (#112)
Some installations might need to add further images
to records imported from ThüCAT.
The records are now extended to support adding images by editors.
The images are not touched during import.
The images are also ignored during clean ups,
the editor is in full control.

This feature for now is only added to tourist attractions by default.
The feature is implemented in a way that all objects extending the
``WerkraumMedia\ThueCat\Domain\Model\Frontend\Base`` class are usable
by adding an ``editorial_images`` field to their table.
2023-08-29 13:54:16 +02:00

39 lines
1.1 KiB
YAML

services:
_defaults:
autowire: true
autoconfigure: true
public: false
WerkraumMedia\ThueCat\:
resource: '../Classes/*'
WerkraumMedia\ThueCat\Command\ImportConfigurationCommand:
tags:
- name: 'console.command'
command: 'thuecat:importviaconfiguration'
WerkraumMedia\ThueCat\Domain\Import\Importer\FetchData:
arguments:
$requestFactory: '@WerkraumMedia\ThueCat\Domain\Import\RequestFactory'
$cache: '@cache.thuecat_fetchdata'
WerkraumMedia\ThueCat\Frontend\DataProcessing\:
resource: '../Classes/Frontend/DataProcessing/*'
public: true
WerkraumMedia\ThueCat\Service\DateBasedFilter:
class: 'WerkraumMedia\ThueCat\Service\DateBasedFilter\FilterBasedOnTypo3Context'
public: true
WerkraumMedia\ThueCat\Typo3\Extbase\DataMapping\AfterObjectThawedHandler:
tags:
- name: 'event.listener'
event: 'TYPO3\CMS\Extbase\Event\Persistence\AfterObjectThawedEvent'
'cache.thuecat_fetchdata':
class: 'TYPO3\CMS\Core\Cache\Frontend\FrontendInterface'
factory:
- '@TYPO3\CMS\Core\Cache\CacheManager'
- 'getCache'
arguments:
- 'thuecat_fetchdata'