Skip to content
Snippets Groups Projects

Issue #3444986: Empty file doesn't trigger clean() to delete all imported items

Merged Issue #3444986: Empty file doesn't trigger clean() to delete all imported items
All threads resolved!

Files

@@ -114,6 +114,13 @@ class LazySubscriber implements EventSubscriberInterface {
}
}
// Initialize the feed immediately after parsing, this ensures that
// item clean ups are triggered even if there are no items to process.
$feed
->getType()
->getProcessor()
->initialize($feed);
// Finally set the parser result on the event.
$event->setParserResult($result);
});
Loading