Integration Api Config Model.
This is a parent class for storing information about Integrations.
- Deprecated:
- 100.1.0
Definition at line 20 of file IntegrationConfig.php.
◆ __construct()
- Parameters
-
TypeIntegration | $configCacheType | |
Reader | $configReader | |
SerializerInterface | $serializer | |
Definition at line 51 of file IntegrationConfig.php.
56 $this->_configCacheType = $configCacheType;
57 $this->_configReader = $configReader;
◆ getIntegrations()
Return integrations loaded from cache if enabled or from files merged previously
- Returns
- array @api
Definition at line 67 of file IntegrationConfig.php.
69 if (
null === $this->_integrations) {
70 $integrations = $this->_configCacheType->load(self::CACHE_ID);
71 if ($integrations && is_string($integrations)) {
72 $this->_integrations = $this->serializer->unserialize($integrations);
74 $this->_integrations = $this->_configReader->read();
75 $this->_configCacheType->save(
76 $this->serializer->serialize($this->_integrations),
◆ $_configCacheType
◆ $_configReader
◆ $_integrations
◆ CACHE_ID
const CACHE_ID = 'integration-api' |
The documentation for this class was generated from the following file: