Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ValueFactory.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
11 
16 {
20  private $objectManager;
21 
25  public function __construct(ObjectManagerInterface $objectManager)
26  {
27  $this->objectManager = $objectManager;
28  }
29 
36  public function create(callable $callback)
37  {
38  return $this->objectManager->create(Value::class, ['callback' => $callback]);
39  }
40 }
$objectManager
Definition: bootstrap.php:17
__construct(ObjectManagerInterface $objectManager)