Commit a9c654eb authored by Felix Herrmann's avatar Felix Herrmann
Browse files

Merge branch 'feature/add-item-per-page-param' into 'master'

Add possible parameters for jobs endpoint.

See merge request riconet-public/typo3/rico_talentstorm!23
parents 35b5d931 a0db1933
......@@ -27,6 +27,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
......@@ -67,7 +68,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,
......
......@@ -15,7 +15,7 @@
"php": "^7.2",
"typo3/cms-core": "^9.5",
"ext-curl": "*",
"riconet/talentstorm-api-client": "^1.0"
"riconet/talentstorm-api-client": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^6.5",
......
......@@ -11,7 +11,7 @@
$EM_CONF[$_EXTKEY] = [
'title' => 'TYPO3 Talentstorm integration',
'description' => 'Talentstorm integration for TYPO3.',
'version' => '3.0.0',
'version' => '3.0.1',
'category' => 'plugin',
'constraints' => [
'depends' => [
......
Markdown is supported
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