Interceptor.php 1.38 KB
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
<?php
namespace Magento\Framework\Indexer\Config\DependencyInfoProvider;

/**
 * Interceptor class for @see \Magento\Framework\Indexer\Config\DependencyInfoProvider
 */
class Interceptor extends \Magento\Framework\Indexer\Config\DependencyInfoProvider implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Framework\Indexer\ConfigInterface $config)
    {
        $this->___init();
        parent::__construct($config);
    }

    /**
     * {@inheritdoc}
     */
    public function getIndexerIdsToRunBefore(string $indexerId) : array
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getIndexerIdsToRunBefore');
        if (!$pluginInfo) {
            return parent::getIndexerIdsToRunBefore($indexerId);
        } else {
            return $this->___callPlugins('getIndexerIdsToRunBefore', func_get_args(), $pluginInfo);
        }
    }

    /**
     * {@inheritdoc}
     */
    public function getIndexerIdsToRunAfter(string $indexerId) : array
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getIndexerIdsToRunAfter');
        if (!$pluginInfo) {
            return parent::getIndexerIdsToRunAfter($indexerId);
        } else {
            return $this->___callPlugins('getIndexerIdsToRunAfter', func_get_args(), $pluginInfo);
        }
    }
}