/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
setup/src/Magento/Setup/Model/AdminAccountFactory.php
45 строк
967 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 11:23
22 окт 2025, 11:23
6c2f6e6
Код
Авторство
О чём код?
<?php /** * Copyright 2015 Adobe * All Rights Reserved. */ namespace Magento\Setup\Model; use Laminas\ServiceManager\ServiceLocatorInterface; use Magento\Framework\DB\Adapter\AdapterInterface; /** * Factory for \Magento\Setup\Model\AdminAccount */ class AdminAccountFactory { /** * @var ServiceLocatorInterface */ protected $serviceLocator; /** * @param ServiceLocatorInterface $serviceLocator */ public function __construct(ServiceLocatorInterface $serviceLocator) { $this->serviceLocator = $serviceLocator; } /** * Create object * * @param AdapterInterface $connection * @param array $data * @return AdminAccount */ public function create(AdapterInterface $connection, $data) { return new AdminAccount( $connection, $this->serviceLocator->get(\Magento\Framework\Encryption\Encryptor::class), $data ); } }