Class ResourceIteratorClassFactory
Factory for creating Guzzle\Service\Resource\ResourceIteratorInterface
objects using a
convention of storing iterator classes under a root namespace using the name of
a Guzzle\Service\Command\CommandInterface
object as a convention for determining the name of an
iterator class. The command name is converted to CamelCase and Iterator is
appended (e.g. abc_foo => AbcFoo).
- Guzzle\Service\Resource\AbstractResourceIteratorFactory implements Guzzle\Service\Resource\ResourceIteratorFactoryInterface
- Guzzle\Service\Resource\ResourceIteratorClassFactory
Namespace: Guzzle\Service\Resource
Located at Guzzle/Service/Resource/ResourceIteratorClassFactory.php
Located at Guzzle/Service/Resource/ResourceIteratorClassFactory.php
Methods summary
-
public
__construct ( string|array $namespaces = array(), Guzzle\Inflection\InflectorInterface $inflector = null )
-
public
registerNamespace ( string $namespace )
Registers a namespace to check for Iterators
-
protected
getClassName ( Guzzle\Service\Command\CommandInterface $command )
Get the name of the class to instantiate for the command
Methods detail
#
public
__construct( string|array $namespaces = array(), Guzzle\Inflection\InflectorInterface
$inflector = null )
Parameters
- $namespaces
string|array
$namespaces List of namespaces for iterator objects- $inflector
Guzzle\Inflection\InflectorInterface
$inflector Inflector used to resolve class names
#
public
Guzzle\Service\Resource\ResourceIteratorClassFactory
registerNamespace( string $namespace )
Registers a namespace to check for Iterators
Parameters
- $namespace
string
$namespace Namespace which contains Iterator classes
Returns
Get the name of the class to instantiate for the command
Parameters
- $command
Guzzle\Service\Command\CommandInterface
$command Command that is associated with the iterator
Returns
string
Methods inherited from Guzzle\Service\Resource\AbstractResourceIteratorFactory
Magic methods summary
Properties summary
protected
array
|
$namespaces |
#
List of namespaces used to look for classes |
protected
|
$inflector |
#
Inflector used to determine class names |