Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/setup/src/Magento/Setup/Di/
Upload File :
Current File : /var/www/clients/client3/web2/web/setup/src/Magento/Setup/Di/MagentoDiFactory.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\Setup\Di;

use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Magento\Framework\App\ObjectManager;

/**
 * Instantiates the type via Magento object manager
 */
class MagentoDiFactory implements FactoryInterface
{
    /**
     * @inheritdoc
     */
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        return ObjectManager::getInstance()->get($requestedName);
    }
}