Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Finder] replaced ChainIterator with PHP built-in AppendIterator
  • Loading branch information
fabpot committed May 4, 2010
1 parent 4be3a50 commit 376ca78
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 122 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Components/Finder/Finder.php
Expand Up @@ -288,10 +288,10 @@ public function in($dir)
{
if (is_array($dir))
{
$iterator = new Iterator\ChainIterator();
$iterator = new \AppendIterator();
foreach ($dir as $d)
{
$iterator->attach($this->searchInDirectory($d));
$iterator->append($this->searchInDirectory($d));
}

return $iterator;
Expand Down
90 changes: 0 additions & 90 deletions src/Symfony/Components/Finder/Iterator/ChainIterator.php

This file was deleted.

This file was deleted.

0 comments on commit 376ca78

Please sign in to comment.