/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Setup/BackupRollbackFactory.php
39 строк
951 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Factory for Acl resource * * Copyright 2015 Adobe * All Rights Reserved. */ namespace Magento\Framework\Setup; use Magento\Framework\ObjectManagerInterface; use Symfony\Component\Console\Output\OutputInterface; class BackupRollbackFactory { /** * @var ObjectManagerInterface */ protected $_objectManager; /** * @param ObjectManagerInterface $objectManager */ public function __construct(ObjectManagerInterface $objectManager) { $this->_objectManager = $objectManager; } /** * Create and return BackupRollback * * @param OutputInterface $output * @return BackupRollback */ public function create($output) { $log = $this->_objectManager->create(\Magento\Framework\Setup\ConsoleLogger::class, ['output' => $output]); return $this->_objectManager->create(\Magento\Framework\Setup\BackupRollback::class, ['log' => $log]); } }