data = $configData; } /** * {@inheritdoc} */ public function getTopic($topicName) { $data = $this->data->get(self::TOPICS . '/' . $topicName); if ($data === null) { throw new LocalizedException( new Phrase('Topic "%topic" is not configured.', ['topic' => $topicName]) ); } return $data; } /** * {@inheritdoc} */ public function getTopicHandlers($topicName) { $topicData = $this->getTopic($topicName); return $topicData[self::TOPIC_HANDLERS]; } /** * {@inheritdoc} */ public function getTopics() { return $this->data->get(self::TOPICS) ?: []; } }