Skip to content

Commit

Permalink
[ResourceBundle] re-add static list resolving in PimcoreRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed May 29, 2019
1 parent 00c50ee commit 4f65f7f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ public function getList()
return $className::getList();
}

throw new \InvalidArgumentException(sprintf('Class %s has no getList function and thus is not supported here', $className));
$listClass = $className . '\\Listing';

if (class_exists($className)) {
return new $listClass();
}

throw new \InvalidArgumentException(sprintf('Class %s has no getList or a Listing Class function and thus is not supported here', $className));
}

/**
Expand Down

0 comments on commit 4f65f7f

Please sign in to comment.