Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ParserFactory.php
Go to the documentation of this file.
1 <?php
9 
11 {
15  const DEFAULT_INSTANCE_TYPE = \Magento\Framework\Translate\Inline\ParserInterface::class;
16 
22  protected $_objectManager;
23 
29  {
30  $this->_objectManager = $objectManager;
31  }
32 
38  public function get()
39  {
40  return $this->_objectManager->get(self::DEFAULT_INSTANCE_TYPE);
41  }
42 
47  public function create(array $arguments = [])
48  {
49  return $this->_objectManager->create(self::DEFAULT_INSTANCE_TYPE, $arguments);
50  }
51 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
$objectManager
Definition: bootstrap.php:17
$arguments