| Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/framework/View/Asset/File/ |
| Current File : /var/www/www.indacotrentino.com/www/vendor/magento/framework/View/Asset/File/ContextFactory.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\View\Asset\File;
use Magento\Framework\ObjectManagerInterface;
/**
* Factory class for @see \Magento\Framework\View\Asset\File\Context
*/
class ContextFactory
{
/**
* @var ObjectManagerInterface
*/
private $objectManager;
/**
* @param ObjectManagerInterface $objectManager
*/
public function __construct(ObjectManagerInterface $objectManager)
{
$this->objectManager = $objectManager;
}
/**
* Create class instance with specified parameters
*
* @param array $data
* @return \Magento\Framework\View\Asset\File\Context
*/
public function create(array $data = [])
{
return $this->objectManager->create(Context::class, $data);
}
}