/** * Resets global singletons for the next plugin * * @return void */ protected function resetSingletons() { $this->persistenceManager->persistAll(); $this->reflectionService->shutdown(); }