Skip to content

Commit f99488c

Browse files
fix php unit tests
1 parent 58d82c0 commit f99488c

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎ProcessMaker/Providers/ProcessMakerServiceProvider.php‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,7 @@ public function register(): void
284284
});
285285

286286
$this->app->extend('config', function ($originalConfig) {
287-
$config = $originalConfig->all();
288-
unset($config['session']['lifetime']);
289-
290-
return new SettingsConfigRepository($config);
287+
return new SettingsConfigRepository($originalConfig->all());
291288
});
292289

293290
$this->app->singleton('currentTenant', function () {

‎ProcessMaker/Repositories/SettingsConfigRepository.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ public function get($key, $default = null)
4545
return $this->getMany($key);
4646
}
4747

48+
if ($key === 'session.lifetime') {
49+
$settingValue = $this->getFromSettings($key);
50+
51+
return $settingValue ?? $default;
52+
}
53+
4854
if (Arr::has($this->items, $key)) {
4955
return Arr::get($this->items, $key);
5056
}

0 commit comments

Comments
 (0)