Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConfigProviderFactory.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
10 
11 use Magento\Framework\Data\Wysiwyg\ConfigProviderInterface as WysiwygConfigInterface;
12 
17 {
23  private $objectManager;
24 
28  public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
29  {
30  $this->objectManager = $objectManager;
31  }
32 
40  public function create(string $instance, array $arguments = []): WysiwygConfigInterface
41  {
42  return $this->objectManager->create($instance, $arguments);
43  }
44 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
$objectManager
Definition: bootstrap.php:17
create(string $instance, array $arguments=[])
$arguments