From 46b77928f746a4231d064774b5b67fd892c7ce86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 4 Aug 2013 17:50:34 +0200 Subject: rm vendor --- .../Form/Util/VirtualFormAwareIterator.php | 50 ---------------------- 1 file changed, 50 deletions(-) delete mode 100644 vendor/symfony/form/Symfony/Component/Form/Util/VirtualFormAwareIterator.php (limited to 'vendor/symfony/form/Symfony/Component/Form/Util/VirtualFormAwareIterator.php') diff --git a/vendor/symfony/form/Symfony/Component/Form/Util/VirtualFormAwareIterator.php b/vendor/symfony/form/Symfony/Component/Form/Util/VirtualFormAwareIterator.php deleted file mode 100644 index 24fdc8bb..00000000 --- a/vendor/symfony/form/Symfony/Component/Form/Util/VirtualFormAwareIterator.php +++ /dev/null @@ -1,50 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Form\Util; - -/** - * Iterator that returns only forms from a form tree that do not inherit their - * parent data. - * - * If the iterator encounters a form that inherits its parent data, it enters - * the form and traverses its children as well. - * - * @author Bernhard Schussek - * - * @deprecated Deprecated since version 2.3, to be removed in 3.0. Use - * {@link InheritDataAwareIterator} instead. - */ -class VirtualFormAwareIterator extends \ArrayIterator implements \RecursiveIterator -{ - /** - * Creates a new iterator. - * - * @param \Symfony\Component\Form\FormInterface[] $forms An array - */ - public function __construct(array $forms) - { - // Uncomment this as soon as the deprecation note should be shown - // trigger_error('VirtualFormAwareIterator is deprecated since version 2.3 and will be removed in 3.0. Use InheritDataAwareIterator instead.', E_USER_DEPRECATED); - - parent::__construct($forms); - } - - public function getChildren() - { - return new static($this->current()->all()); - } - - public function hasChildren() - { - return $this->current()->getConfig()->getInheritData(); - } -} -- cgit v1.2.3