Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Factory.php
Go to the documentation of this file.
1 <?php
9 
12 
13 class Factory
14 {
18  const CLASS_NAME = \Magento\Framework\Authorization::class;
19 
25  protected $_objectManager = null;
26 
33  {
34  $this->_objectManager = $objectManager;
35  }
36 
43  public function create(array $data = [])
44  {
45  return $this->_objectManager->create(self::CLASS_NAME, $data);
46  }
47 }
$objectManager
Definition: bootstrap.php:17
__construct(ObjectManagerInterface $objectManager)
Definition: Factory.php:32