You are here

public function UploaderServlet::init in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Creates an instance.

File

src/Flmngr/FileUploaderServer/servlet/UploaderServlet.php, line 33

Class

UploaderServlet
Uploader servlet (ported from Java). Stores available action processors, routes request to one of them and returns JSON formed by request processor.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\servlet

Code

public function init($config) {
  $this->actions = new Actions();
  $this->json = new JsonCodec($this->actions);
  $this->config = new ServletConfig($config);
  $this->uploader = new Uploader($this->config, $this->actions);
}