public function __construct(array $configs) { foreach ($configs as $graph => $config) { $this->addConfig($config, $graph); } }
public function __construct(array $configs, EventDispatcherInterface $dispatcher = null, CallbackFactoryInterface $callbackFactory = null) { parent::__construct($configs); $this->dispatcher = $dispatcher; $this->callbackFactory = $callbackFactory; }