Fix deprecation notice on VirtualFormAwareIterator

This commit is contained in:
Nicolas Grekas 2014-12-13 11:10:32 +01:00
parent e2a19ee185
commit 1d58df471a

View File

@ -11,6 +11,8 @@
namespace Symfony\Component\Form\Util;
trigger_error('Symfony\Component\Form\Util\VirtualFormAwareIterator is deprecated since Symfony 2.3 and will be removed in 3.0. Use Symfony\Component\Form\Util\InheritDataAwareIterator instead.', E_USER_DEPRECATED);
/**
* Iterator that traverses an array of forms.
*
@ -25,15 +27,6 @@ namespace Symfony\Component\Form\Util;
*/
class VirtualFormAwareIterator extends \IteratorIterator implements \RecursiveIterator
{
public function __construct(\Traversable $iterator)
{
parent::__construct($iterator);
if ('Symfony\Component\Form\Util\VirtualFormAwareIterator' === get_class()) {
trigger_error('class VirtualFormAwareIterator is deprecated since version 2.7 and will be removed in 3.0. Use InheritDataAwareIterator instead.', E_USER_DEPRECATED);
}
}
/**
* {@inheritdoc}
*/