Interceptor.php 883 Bytes
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
<?php
namespace Magento\Framework\View\TemplateEngineFactory;

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

    public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, array $engines)
    {
        $this->___init();
        parent::__construct($objectManager, $engines);
    }

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