public function __construct(SearchManager $sm) { $this->sm = $sm; $this->evm = $sm->getEventManager(); }