public function __construct(Request $request, PluginHooksService $hooks, AjaxService $ajax, ResponseTransport $transport) { $this->request = $request; $this->hooks = $hooks; $this->ajax = $ajax; $this->transport = $transport; $this->headers = new ResponseHeaderBag(); }