Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CustomerDataGeneratorFactory.php
Go to the documentation of this file.
1 <?php
7 
12 {
16  private $objectManager;
17 
21  public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
22  {
23  $this->objectManager = $objectManager;
24  }
25 
32  public function create(array $config)
33  {
34  return $this->objectManager->create(
35  \Magento\Setup\Model\Customer\CustomerDataGenerator::class,
36  [
37  'addressGenerator' => $this->objectManager->create(
38  \Magento\Setup\Model\Address\AddressDataGenerator::class
39  ),
40  'config' => $config
41  ]
42  );
43  }
44 }
$objectManager
Definition: bootstrap.php:17
$config
Definition: fraud_order.php:17
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)