From 6d2b276211fe4444623517b2bca7df293c6b7c35 Mon Sep 17 00:00:00 2001 From: Thinkscape Date: Thu, 8 Mar 2012 17:29:22 +0100 Subject: [PATCH] Refactor Zend\Stdlib\ArrayTools to ArrayUtils, add missing headers. - ArrayTools will now be called ArrayUtils after an anonymous vote (http://framework.zend.com/wiki/display/ZFDEV2/POLL+-+Array+class+name). - Add missing Zend Framework headers to ArrayUtils class file and tests. --- src/PatternFactory.php | 4 ++-- src/StorageFactory.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PatternFactory.php b/src/PatternFactory.php index 0393419fd..c44dfe71c 100644 --- a/src/PatternFactory.php +++ b/src/PatternFactory.php @@ -22,7 +22,7 @@ use Traversable, Zend\Loader\Broker, - Zend\Stdlib\ArrayTools; + Zend\Stdlib\ArrayUtils; /** * @category Zend @@ -50,7 +50,7 @@ class PatternFactory public static function factory($patternName, $options = array()) { if ($options instanceof Traversable) { - $options = ArrayTools::iteratorToArray($options); + $options = ArrayUtils::iteratorToArray($options); } if (is_array($options)) { $options = new Pattern\PatternOptions($options); diff --git a/src/StorageFactory.php b/src/StorageFactory.php index 198713fdf..4da4b8aff 100644 --- a/src/StorageFactory.php +++ b/src/StorageFactory.php @@ -23,7 +23,7 @@ use Traversable, Zend\Loader\Broker, - Zend\Stdlib\ArrayTools; + Zend\Stdlib\ArrayUtils; /** * @category Zend @@ -59,7 +59,7 @@ class StorageFactory public static function factory($cfg) { if ($cfg instanceof Traversable) { - $cfg = ArrayTools::iteratorToArray($cfg); + $cfg = ArrayUtils::iteratorToArray($cfg); } if (!is_array($cfg)) {