Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / http-foundation / Session / Flash / FlashBag.php
index 1516de7fe92efbae277132243ba05428b62f7d22..85b4f00b00f56c8cd85b3417e48c55a6e2dff4b1 100644 (file)
@@ -14,11 +14,9 @@ namespace Symfony\Component\HttpFoundation\Session\Flash;
 /**
  * FlashBag flash message container.
  *
- * \IteratorAggregate implementation is deprecated and will be removed in 3.0.
- *
  * @author Drak <drak@zikula.org>
  */
-class FlashBag implements FlashBagInterface, \IteratorAggregate
+class FlashBag implements FlashBagInterface
 {
     private $name = 'flashes';
 
@@ -165,18 +163,4 @@ class FlashBag implements FlashBagInterface, \IteratorAggregate
     {
         return $this->all();
     }
-
-    /**
-     * Returns an iterator for flashes.
-     *
-     * @deprecated since version 2.4, to be removed in 3.0.
-     *
-     * @return \ArrayIterator An \ArrayIterator instance
-     */
-    public function getIterator()
-    {
-        @trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-        return new \ArrayIterator($this->all());
-    }
 }