Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ProviderFactory.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
18  private $objectManager;
19 
23  public function __construct(
24  ObjectManagerInterface $objectManager
25  ) {
26  $this->objectManager = $objectManager;
27  }
28 
33  public function create($providerName)
34  {
35  return $this->objectManager->get($providerName);
36  }
37 }
$objectManager
Definition: bootstrap.php:17
__construct(ObjectManagerInterface $objectManager)