/** * Initializes a new UnitOfWork instance, bound to the given SearchManager. * * @param SearchManager $sm */ public function __construct(SearchManager $sm) { $this->sm = $sm; $this->evm = $sm->getEventManager(); }
/** * {@inheritDoc} */ protected function initialize() { $this->driver = $this->config->getMetadataDriverImpl(); $this->evm = $this->sm->getEventManager(); $this->initialized = true; }