mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Icinga\Protocol\File\FileIterator: extend EnumeratingFilterIterator
This commit is contained in:
parent
081d8eecfc
commit
e192b939c2
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
namespace Icinga\Protocol\File;
|
namespace Icinga\Protocol\File;
|
||||||
|
|
||||||
use FilterIterator;
|
use Icinga\Util\EnumeratingFilterIterator;
|
||||||
use Icinga\Util\File;
|
use Icinga\Util\File;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -12,7 +12,7 @@ use Icinga\Util\File;
|
|||||||
*
|
*
|
||||||
* Iterate over a file, yielding only fields of non-empty lines which match a PCRE expression
|
* Iterate over a file, yielding only fields of non-empty lines which match a PCRE expression
|
||||||
*/
|
*/
|
||||||
class FileIterator extends FilterIterator
|
class FileIterator extends EnumeratingFilterIterator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* A PCRE string with the fields to extract from the file's lines as named subpatterns
|
* A PCRE string with the fields to extract from the file's lines as named subpatterns
|
||||||
|
Loading…
x
Reference in New Issue
Block a user