7 declare(strict_types=1);
28 private $objectManager;
35 array $colorModesPool,
36 \
Magento\Framework\ObjectManagerInterface $objectManager
38 $this->colorModes = $colorModesPool;
50 foreach ($this->colorModes as $modeName =>
$className) {
63 private function createModeProvider(
string $instance):
ModeInterface 65 return $this->objectManager->create($instance);
__construct(array $colorModesPool, \Magento\Framework\ObjectManagerInterface $objectManager)