You are here

public function RestfulManager::__construct in RESTful 7.2

Constructor.

File

src/RestfulManager.php, line 163
Contains \Drupal\restful\RestfulManager.

Class

RestfulManager

Namespace

Drupal\restful

Code

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;
}