Skip to content
Snippets Groups Projects
Commit 707e0718 authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[TASK] get rid of constructor, respectStoragePage is true per default

parent e03b486e
No related branches found
No related tags found
1 merge request!46AZM changes
......@@ -46,23 +46,6 @@ class JobRepository extends Repository {
public const ORDER_BY_CRDATE = 2;
public const ORDER_BY_SORTING = 1;
/**
* @param ObjectManagerInterface $objectManager
* @throws InvalidConfigurationTypeException
*/
public function __construct(ObjectManagerInterface $objectManager) {
parent::__construct($objectManager);
$configurationManager = $objectManager->get(ConfigurationManager::class);
$querySettings = $objectManager->get(Typo3QuerySettings::class);
$storagePids = GeneralUtility::trimExplode(
',', $configurationManager->getConfiguration(
ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK
)['persistence']['storagePid']);
$querySettings->setStoragePageIds($storagePids);
$querySettings->setRespectStoragePage(TRUE);
$this->setDefaultQuerySettings($querySettings);
}
/**
* Queries the job records based on filters (for the backend)
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment