/** * @param RedirectionEvent $event */ public function deleteForRedirection(RedirectionEvent $event) { $routes = $this->routeDocumentManager->deleteForRedirection($event->getRedirection()); foreach ($routes as $route) { $this->objectManager->remove($route); } $this->objectManager->flush(); }
/** * @param RedirectionEvent $event */ public function redirectionUpdate(RedirectionEvent $event) { $this->sendLog('open_orchestra_log.redirection.update', $event->getRedirection()); }