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);
    }
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);
    }
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 ) ; }
Download a resource

@param Pluf_HTTP_Request $request
@param array $match
@return Pluf_HTTP_Response_File
Download a resource