Repository navigation
2.0.0
Escargot 2.0 fixes transport exception handling and exposes redirect destinations to subscribers.
A major release is required because of two compatibility changes:
ExceptionSubscriberInterface::onTransportException()now acceptsResponseInterface|null. Symfony can throw before returning a response, which previously caused a TypeError while handling the original exception. Existing subscriber implementations must update their signature and handle null.DoctrineQueuenow requires a nullableredirected_tocolumn. Existing queue tables must be migrated before using 2.0. Custom persistent queues must also store and restore redirect information.CrawlUri::getRedirectedTo()exposes the final redirect destination whilegetUri()retains the original requested URI. Redirect information is available to subscribers and persisted even when further response processing is skipped. The HTML crawler now resolves relative links against the final destination.
What's Changed
Full Changelog: 1.7.0...2.0.0