Icinga\Protocol\File\FileReader: don't use Icinga\Util\Enumerate
This commit is contained in:
parent
e192b939c2
commit
051128b967
|
@ -6,7 +6,6 @@ namespace Icinga\Protocol\File;
|
||||||
|
|
||||||
use Icinga\Data\Selectable;
|
use Icinga\Data\Selectable;
|
||||||
use Countable;
|
use Countable;
|
||||||
use Icinga\Util\Enumerate;
|
|
||||||
use Zend_Config;
|
use Zend_Config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,9 +52,7 @@ class FileReader implements Selectable, Countable
|
||||||
*/
|
*/
|
||||||
public function iterate()
|
public function iterate()
|
||||||
{
|
{
|
||||||
return new Enumerate(
|
return new FileIterator($this->filename, $this->fields);
|
||||||
new FileIterator($this->filename, $this->fields)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue