Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ObserverFactory.php
Go to the documentation of this file.
1 <?php
9 
11 {
15  protected $_objectManager;
16 
21  {
22  $this->_objectManager = $objectManager;
23  }
24 
31  public function get($className)
32  {
33  return $this->_objectManager->get($className);
34  }
35 
43  public function create($className, array $arguments = [])
44  {
45  return $this->_objectManager->create($className, $arguments);
46  }
47 }
create($className, array $arguments=[])
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
$objectManager
Definition: bootstrap.php:17
$arguments
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31