Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BackupRollbackFactory.php
Go to the documentation of this file.
1 <?php
9 
11 use Symfony\Component\Console\Output\OutputInterface;
12 
14 {
18  protected $_objectManager;
19 
24  {
25  $this->_objectManager = $objectManager;
26  }
27 
34  public function create($output)
35  {
36  $log = $this->_objectManager->create(\Magento\Framework\Setup\ConsoleLogger::class, ['output' => $output]);
37  return $this->_objectManager->create(\Magento\Framework\Setup\BackupRollback::class, ['log' => $log]);
38  }
39 }
$objectManager
Definition: bootstrap.php:17
__construct(ObjectManagerInterface $objectManager)