Class VisitorFlyweight
Flyweight factory used to instantiate request and response visitors
Namespace: Guzzle\Service\Command\LocationVisitor
Located at src/Guzzle/Service/Command/LocationVisitor/VisitorFlyweight.php
Located at src/Guzzle/Service/Command/LocationVisitor/VisitorFlyweight.php
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
#
addRequestVisitor( string $name,
Add a response visitor to the factory by name |
public
|
#
addResponseVisitor( string $name,
Add a response visitor to the factory by name |
protected static
|
$instance
Singleton instance of self |
|
protected static
array
|
$defaultMappings
Default array of mappings of location names to classes |
#
array(
'request.body' => 'Guzzle\Service\Command\LocationVisitor\Request\BodyVisitor',
'request.header' => 'Guzzle\Service\Command\LocationVisitor\Request\HeaderVisitor',
'request.json' => 'Guzzle\Service\Command\LocationVisitor\Request\JsonVisitor',
'request.postField' => 'Guzzle\Service\Command\LocationVisitor\Request\PostFieldVisitor',
'request.postFile' => 'Guzzle\Service\Command\LocationVisitor\Request\PostFileVisitor',
'request.query' => 'Guzzle\Service\Command\LocationVisitor\Request\QueryVisitor',
'request.response_body' => 'Guzzle\Service\Command\LocationVisitor\Request\ResponseBodyVisitor',
'request.responseBody' => 'Guzzle\Service\Command\LocationVisitor\Request\ResponseBodyVisitor',
'request.xml' => 'Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor',
'response.body' => 'Guzzle\Service\Command\LocationVisitor\Response\BodyVisitor',
'response.header' => 'Guzzle\Service\Command\LocationVisitor\Response\HeaderVisitor',
'response.json' => 'Guzzle\Service\Command\LocationVisitor\Response\JsonVisitor',
'response.reasonPhrase' => 'Guzzle\Service\Command\LocationVisitor\Response\ReasonPhraseVisitor',
'response.statusCode' => 'Guzzle\Service\Command\LocationVisitor\Response\StatusCodeVisitor',
'response.xml' => 'Guzzle\Service\Command\LocationVisitor\Response\XmlVisitor'
)
|
protected
array
|
$mappings
Array of mappings of location names to classes |
|
protected
array
|
$cache
Cache of instantiated visitors |
#
array()
|