From 4eaaa1c44ece029a897724552900ea2adc94eda6 Mon Sep 17 00:00:00 2001 From: Pavlo Cherniavskyi <pcherniavsky@ebay.com> Date: Mon, 2 Mar 2015 11:19:46 +0200 Subject: [PATCH] MAGETWO-33631: Advanced Developer Workflow - remove unnecessary class: see obsolete_classes.php:2595 --- .../View/Asset/PreProcessorFactory.php | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 lib/internal/Magento/Framework/View/Asset/PreProcessorFactory.php diff --git a/lib/internal/Magento/Framework/View/Asset/PreProcessorFactory.php b/lib/internal/Magento/Framework/View/Asset/PreProcessorFactory.php deleted file mode 100644 index 23b42dc024f..00000000000 --- a/lib/internal/Magento/Framework/View/Asset/PreProcessorFactory.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php -/** - * Copyright © 2015 Magento. All rights reserved. - * See COPYING.txt for license details. - */ -namespace Magento\Framework\View\Asset; - -/** - * View asset pre-processor factory - */ -class PreProcessorFactory -{ - /** - * Object Manager instance - * - * @var \Magento\Framework\ObjectManagerInterface - */ - protected $objectManager; - - /** - * Object manager - * - * @param \Magento\Framework\ObjectManagerInterface $objectManager - */ - public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager) - { - $this->objectManager = $objectManager; - } - - /** - * Create class instance with specified parameters - * - * @param string $instanceName - * @param array $data - * @return \Magento\Framework\View\Asset\PreProcessorInterface - * @throws \UnexpectedValueException - */ - public function create($instanceName, array $data = []) - { - $processorInstance = $this->objectManager->create($instanceName, $data); - if (!$processorInstance instanceof \Magento\Framework\View\Asset\PreProcessorInterface) { - throw new \UnexpectedValueException("{$instanceName} has to implement the pre-processor interface."); - } - return $processorInstance; - } -} -- GitLab