Interceptor.php 2.82 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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
<?php
namespace Magento\Framework\View\Asset\Minification;

/**
 * Interceptor class for @see \Magento\Framework\View\Asset\Minification
 */
class Interceptor extends \Magento\Framework\View\Asset\Minification implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\App\State $appState, $scope = 'store')
    {
        $this->___init();
        parent::__construct($scopeConfig, $appState, $scope);
    }

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

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

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

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

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

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