We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed286a commit edab04eCopy full SHA for edab04e
1 file changed
ViewModel/SectionConfig.php
@@ -0,0 +1,21 @@
1
+<?php
2
+declare(strict_types=1);
3
+
4
+namespace Loki\Base\ViewModel;
5
6
+use Magento\Framework\App\Config\ScopeConfigInterface;
7
+use Magento\Framework\Session\Config;
8
+use Magento\Framework\View\Element\Block\ArgumentInterface;
9
10
+class SectionConfig implements ArgumentInterface
11
+{
12
+ public function __construct(
13
+ private readonly ScopeConfigInterface $scopeConfig,
14
+ ) {
15
+ }
16
17
+ public function getSectionDataLifeTime(): int
18
+ {
19
+ return (int)$this->scopeConfig->getValue('customer/online_customers/section_data_lifetime');
20
21
+}
0 commit comments