public function MockHandlerStack::__construct in Apigee Edge 8
Override the mock handler constructor.
Parameters
\Apigee\MockClient\MockStorageInterface $storage: Mock storage.
\Apigee\MockClient\ResponseFactoryInterface $response_factory: The response factory.
\Twig_Environment $twig: The twig environment used in the response generator.
File
- tests/
modules/ apigee_mock_api_client/ src/ MockHandlerStack.php, line 69
Class
- MockHandlerStack
- The mock handler stack.
Namespace
Drupal\apigee_mock_api_clientCode
public function __construct(MockStorageInterface $storage, ResponseFactoryInterface $response_factory, \Twig_Environment $twig) {
parent::__construct($storage);
$this->responseFactory = $response_factory;
$this->twig = $twig;
}