2019-08-12 07:43:37 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Wrm\Events\Service;
|
|
|
|
|
|
|
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
2019-08-13 11:17:34 +02:00
|
|
|
use TYPO3\CMS\Core\Log\LogManager;
|
2019-08-12 07:43:37 +02:00
|
|
|
use TYPO3\CMS\Extbase\Configuration\ConfigurationManager;
|
|
|
|
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
|
|
|
use TYPO3\CMS\Extbase\Object\ObjectManager;
|
|
|
|
|
|
|
|
class CleanupService {
|
|
|
|
|
|
|
|
/**
|
2019-08-13 11:17:34 +02:00
|
|
|
* Cleanup Service constructor.
|
2019-08-12 07:43:37 +02:00
|
|
|
* @param ConfigurationManager $configurationManager
|
|
|
|
* @param ObjectManager $objectManager
|
|
|
|
*/
|
|
|
|
public function __construct(
|
|
|
|
ConfigurationManager $configurationManager,
|
|
|
|
ObjectManager $objectManager
|
|
|
|
) {
|
|
|
|
|
|
|
|
// Get Typoscript Settings
|
|
|
|
$this->settings = $this->configurationManager->getConfiguration(
|
|
|
|
ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS,
|
|
|
|
'Events',
|
|
|
|
'Pi1'
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2019-08-13 11:17:34 +02:00
|
|
|
$this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(__CLASS__);
|
|
|
|
$this->logger->info('Event Cleanup Service');
|
2019-08-12 07:43:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function doCleanup() {
|
|
|
|
|
2019-08-13 11:17:34 +02:00
|
|
|
// To be done
|
|
|
|
// Hmpf
|
2019-08-12 07:43:37 +02:00
|
|
|
}
|
|
|
|
}
|