public function __construct(BufferedCache $cache, BoardHistoryStorage $storage, $prefix, array $indexed, array $options = array(), ObjectManager $om) { if ($indexed !== array('topic_list_id')) { throw new DataModelException(__CLASS__ . ' is hardcoded to only index topic_list_id: ' . print_r($indexed, true), 'process-data'); } parent::__construct($cache, $storage, $prefix, $indexed, $options); $this->om = $om; }
public function __construct(BufferedCache $cache, TopicHistoryStorage $storage, TreeRepository $treeRepo, $prefix, array $indexed, array $options = array()) { if ($indexed !== array('topic_root_id')) { throw new \MWException(__CLASS__ . ' is hardcoded to only index topic_root_id: ' . print_r($indexed, true)); } parent::__construct($cache, $storage, $prefix, $indexed, $options); $this->treeRepository = $treeRepo; }