public function buildFromIterator(Iterator $iterator, $base = null)
    {
        return $this->invokeEvent(
            self::BUILD_ITERATOR,
            array(
                'iterator' => $iterator,
                'base' => $base
            )
        );
    }
public function buildFromIterator(Iterator $iterator, $base = null)
    {
        return $this->invokeEvent(
            self::BUILD_ITERATOR,
            array(
                'iterator' => $iterator,
                'base' => $base
            )
        );
    }
public function buildFromIterator ( Iterator $ iterator , $ base = null ) { return $ this -> invokeEvent ( self :: BUILD_ITERATOR , array ( 'iterator' => $ iterator , 'base' => $ base ) ) ; }
Builds the archive using an iterator.

Triggers the `Builder::BUILD_ITERATOR` event.

$iterator = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator('/path/to/example')
);

$builder->buildFromIterator($iterator, '/path/to/example');

> Note that if the iterator returns instances of `SplFileInfo`,
> the `$base` argument becomes required.

@param Iterator $iterator            An iterator.
@param string   $base     (optional) The base directory path.

@return array An array mapping internal paths to external files.

@api
Builds the archive using an iterator .