twig = $twig; $this->storage = $storage; } /** * @param Request $request * * @return JSON_Response * * @throws User_Not_Found_Exception */ public function remove( Request $request ): JSON_Response { $this->remove_trusted_device( $request->post( 'device_id' ) ); return $this->json( [ 'twofas_light_trusted_devices' => $this->twig->render_response( $this->get_trusted_devices_template() ) ] ); } }