. */ namespace SP\Services\EventLog; use SP\DataModel\ItemSearchData; use SP\Repositories\EventLog\EventlogRepository; use SP\Services\Service; /** * Class EventlogService * * @package SP\Services\EventLog */ class EventlogService extends Service { /** * @var EventlogRepository */ protected $eventLogRepository; /** * @param ItemSearchData $itemSearchData * @return mixed */ public function search(ItemSearchData $itemSearchData) { return $this->eventLogRepository->search($itemSearchData); } /** * @return bool * @throws \SP\Core\Exceptions\ConstraintException * @throws \SP\Core\Exceptions\QueryException * @throws \SP\Core\Exceptions\SPException */ public function clear() { return $this->eventLogRepository->clear(); } /** * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ protected function initialize() { $this->eventLogRepository = $this->dic->get(EventlogRepository::class); } }