Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ObjectFactory.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Framework\Api;
8 
10 {
14  protected $objectManager;
15 
20  {
21  $this->objectManager = $objectManager;
22  }
23 
31  public function create($className, array $arguments)
32  {
33  return $this->objectManager->create($className, $arguments);
34  }
35 
42  public function get($className)
43  {
44  return $this->objectManager->get($className);
45  }
46 }
create($className, array $arguments)
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
$arguments
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31