Commit 5addc558 authored by Utz, Wolf-Peter's avatar Utz, Wolf-Peter
Browse files

Feature/8.7/add item per page param

parent 71d34d1c
......@@ -26,6 +26,7 @@ class TalentstormApiService
const JOBS_CACHE_ID = 'jobs';
const PORTALS_CACHE_ID = 'portals';
const TYPES_CACHE_ID = 'types';
const ITEMS_PER_PAGE = 9999;
/**
* @var Client
......@@ -62,7 +63,7 @@ class TalentstormApiService
$cache = $this->getCacheProvider();
$jobs = $cache->getEntry($this->getCacheName(), self::JOBS_CACHE_ID);
if (!is_array($jobs)) {
$jobs = $this->client->fetchJobs()['hydra:member'];
$jobs = $this->client->fetchJobs(['itemPerPage' => self::ITEMS_PER_PAGE])['hydra:member'];
$cache->setEntry(
$this->getCacheName(),
self::JOBS_CACHE_ID,
......
......@@ -13,7 +13,7 @@
"require": {
"typo3/cms-core": "^8.7",
"ext-curl": "*",
"riconet/talentstorm-api-client": "^1.0"
"riconet/talentstorm-api-client": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^6.5",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment