Class AwsResourceIteratorFactory
Resource iterator factory used to instantiate the default AWS resource iterator with the correct configuration or use a concrete iterator class if one exists
- Aws\Common\Iterator\AwsResourceIteratorFactory implements Guzzle\Service\Resource\ResourceIteratorFactoryInterface
Methods summary
-
public
__construct ( array $config, Guzzle\Service\Resource\ResourceIteratorFactoryInterface $primaryIteratorFactory = null )
-
public
build ( Guzzle\Service\Command\CommandInterface $command, array $options = array() )
Create a resource iterator
-
public
canBuild ( Guzzle\Service\Command\CommandInterface $command )
Check if the factory can create an iterator
Methods detail
#
public
__construct( array $config, Guzzle\Service\Resource\ResourceIteratorFactoryInterface
$primaryIteratorFactory = null )
Parameters
- $config
array
$config An array of configuration values for the factory- $primaryIteratorFactory
Guzzle\Service\Resource\ResourceIteratorFactoryInterface
$primaryIteratorFactory Another factory to use for chain of command
#
public
ResourceIteratorInterface
build( Guzzle\Service\Command\CommandInterface
$command, array $options = array() )
Create a resource iterator
Parameters
- $command
Guzzle\Service\Command\CommandInterface
$command Command to create an iterator for- $options
array
$options Iterator options that are exposed as data.
Returns
ResourceIteratorInterface
Implementation of
Check if the factory can create an iterator
Parameters
- $command
Guzzle\Service\Command\CommandInterface
$command Command to create an iterator for
Returns
boolean
Implementation of
Magic methods summary
Properties summary
protected static
array
|
$defaultIteratorConfig |
#
Default configuration values for iterators |
protected
array
|
$config |
#
Iterator configuration for each iterable operation |
protected
|
$primaryIteratorFactory |
#
Another factory that will be used first to instantiate the iterator |