original_string: public function download($request, $match)
      {
          // GET data
          $resource = Pluf_Shortcuts_GetObjectOr404('Tenant_Resource', $match['modelId']);
          // Do
          $resource->downloads += 1;
          $resource->update();
          return new Pluf_HTTP_Response_File($resource->getAbsloutPath(), $resource->mime_type);
      }
code: public function download($request, $match)
      {
          // GET data
          $resource = Pluf_Shortcuts_GetObjectOr404('Tenant_Resource', $match['modelId']);
          // Do
          $resource->downloads += 1;
          $resource->update();
          return new Pluf_HTTP_Response_File($resource->getAbsloutPath(), $resource->mime_type);
      }
code_tokens: public function download ( $ request , $ match ) { // GET data $ resource = Pluf_Shortcuts_GetObjectOr404 ( 'Tenant_Resource' , $ match [ 'modelId' ] ) ; // Do $ resource -> downloads += 1 ; $ resource -> update ( ) ; return new Pluf_HTTP_Response_File ( $ resource -> getAbsloutPath ( ) , $ resource -> mime_type ) ; }
docstring: Download a resource
  
  @param Pluf_HTTP_Request $request
  @param array $match
  @return Pluf_HTTP_Response_File
docstring_tokens: Download a resource