22 private $productFrontendActionResource;
27 private $frontendStorageConfigurationPool;
37 $this->productFrontendActionResource = $productFrontendActionResource;
38 $this->frontendStorageConfigurationPool = $frontendStorageConfigurationPool;
49 private function getLifeTimeByNamespace($namespace)
51 $configurationObject = $this->frontendStorageConfigurationPool->
get($namespace);
52 if ($configurationObject) {
69 private function getUniqueNamespaces()
71 $adapter = $this->productFrontendActionResource->getConnection();
73 ->from($this->productFrontendActionResource->getMainTable(), [
'action_id',
'type_id'])
84 $adapter = $this->productFrontendActionResource->getConnection();
86 foreach ($this->getUniqueNamespaces() as $namespace) {
87 $lifeTime = $this->getLifeTimeByNamespace($namespace);
93 $adapter->delete($this->productFrontendActionResource->getMainTable(), $where);
__construct(ProductFrontendAction $productFrontendActionResource, FrontendStorageConfigurationPool $frontendStorageConfigurationPool)