Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AdminAccountFactory.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Setup\Model;
8 
10 use Zend\ServiceManager\ServiceLocatorInterface;
13 
15 {
19  protected $serviceLocator;
20 
24  public function __construct(ServiceLocatorInterface $serviceLocator)
25  {
26  $this->serviceLocator = $serviceLocator;
27  }
28 
35  {
36  return new AdminAccount(
38  $this->serviceLocator->get(\Magento\Framework\Encryption\Encryptor::class),
39  $data
40  );
41  }
42 }
create(AdapterInterface $connection, $data)
$connection
Definition: bulk.php:13
__construct(ServiceLocatorInterface $serviceLocator)