[DomCrawler] add upgrade hint on interface changes

This commit is contained in:
Toni Uebernickel 2015-12-01 08:04:34 +01:00
parent 7b8865bb87
commit e80e5dc7b4
1 changed files with 16 additions and 0 deletions

View File

@ -105,6 +105,22 @@ UPGRADE FROM 2.x to 3.0
removed: `ContainerBuilder::synchronize()`, `Definition::isSynchronized()`,
and `Definition::setSynchronized()`.
### DomCrawler
* The interface of the `Symfony\Component\DomCrawler\Crawler` changed. It does no longer implement `\Iterator` but `\IteratorAggregate`. If you rely on methods of the `\Iterator` interface, call the `getIterator` method of the `\IteratorAggregate` interface before. No changes are required in a `\Traversable`-aware control structure, such as `foreach`.
Before:
```php
$crawler->current();
```
After:
```php
$crawler->getIterator()->current();
```
### EventDispatcher
* The method `getListenerPriority($eventName, $listener)` has been added to the