public function RestfulManager::__construct in RESTful 7.2
Constructor.
File
- src/
RestfulManager.php, line 163 - Contains \Drupal\restful\RestfulManager.
Class
Namespace
Drupal\restfulCode
public function __construct(RequestInterface $request, ResponseInterface $response, ResourceManagerInterface $resource_manager, FormatterManagerInterface $formatter_manager, PersistableCacheInterface $persistable_cache) {
// Init the properties.
$this->request = $request;
$this->response = $response;
$this->resourceManager = $resource_manager;
$this->formatterManager = $formatter_manager;
$this->persistableCache = $persistable_cache;
}