Your IP : 127.0.0.1


Current Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/Setup/Patch/
Upload File :
Current File : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/Setup/Patch/PatchApplierFactory.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

namespace Magento\Framework\Setup\Patch;

use Magento\Framework\ObjectManagerInterface;

/**
 * This factory allows to create data patches applier
 */
class PatchApplierFactory
{
    /**
     * @var ObjectManagerInterface
     */
    private $objectManager;

    /**
     * @param ObjectManagerInterface $objectManager
     */
    public function __construct(ObjectManagerInterface $objectManager)
    {
        $this->objectManager = $objectManager;
    }

    /**
     * Create new instance of patch applier
     *
     * @param array $arguments
     * @return PatchInterface
     */
    public function create($arguments = [])
    {
        return $this->objectManager->create(\Magento\Framework\Setup\Patch\PatchApplier::class, $arguments);
    }
}