Integration Config Model.
This is a parent class for storing information about Integrations.
- Deprecated:
- 100.1.0
Definition at line 18 of file Config.php.
◆ __construct()
__construct |
( |
Cache\Type |
$configCacheType, |
|
|
Config\Reader |
$configReader, |
|
|
SerializerInterface |
$serializer = null |
|
) |
| |
- Parameters
-
Cache\Type | $configCacheType | |
Config\Reader | $configReader | |
SerializerInterface | $serializer | |
Definition at line 49 of file Config.php.
54 $this->_configCacheType = $configCacheType;
55 $this->_configReader = $configReader;
◆ getIntegrations()
Return integrations loaded from cache if enabled or from files merged previously
- Returns
- array @api
Definition at line 65 of file Config.php.
67 if (
null === $this->_integrations) {
68 $integrations = $this->_configCacheType->load(self::CACHE_ID);
69 if ($integrations && is_string($integrations)) {
70 $this->_integrations = $this->serializer->unserialize($integrations);
72 $this->_integrations = $this->_configReader->read();
73 $this->_configCacheType->save(
74 $this->serializer->serialize($this->_integrations),
◆ $_configCacheType
◆ $_configReader
◆ $_integrations
◆ CACHE_ID
const CACHE_ID = 'integration' |
The documentation for this class was generated from the following file:
- vendor/magento/module-integration/Model/Config.php