\Tenant_Middleware_ResourceAccess

If the request points to a resource with get, then the resource is returned as response.

There is no need to check secureity access for a resource, this middleware check the request and return the resource if the request is GET.

There are two types of resources:

  • SPA resources
  • User loaded resources

This middleware support both of them

Summary

Methods
Properties
Constants
process_request()
process_response()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
findTenantResource()
redirectToDefaultSpa()
No private properties found
N/A

Methods

process_request()

process_request(\Pluf_HTTP_Request  $request) : boolean

Parameters

\Pluf_HTTP_Request $request

Returns

boolean —

false if ther is no problem otherwize ther is an error

process_response()

process_response(\Pluf_HTTP_Request  $request, \Pluf_HTTP_Response  $response) 

Parameters

\Pluf_HTTP_Request $request
\Pluf_HTTP_Response $response

findTenantResource()

findTenantResource(string  $path) : \Tenant_Resource

Finds tenant resource with path

Parameters

string $path

of the resource

Returns

\Tenant_Resource

the resource

redirectToDefaultSpa()

redirectToDefaultSpa(  $path = '') 

Parameters

$path