Application
public class Application
Constructor Summary | |
---|---|
void | __construct(mixed options) |
Method Summary | |
---|---|
void | mount(str namespaceName, str uriSpace) Add a namespace to a specific URI-space |
str | uri(str className, str params) Get the URL for the given resource class |
Resource | getResource(Request request) Given the request data and the loaded resource metadata, pick the best matching resource to handle the request based on URI and priority. |
str[] | getResourceMetadata(Tonic/Resource resource) Get the already loaded resource annotation metadata |
public void __construct(mixed options)
public void mount(str namespaceName, str uriSpace)
Add a namespace to a specific URI-space
public str uri(str className, str params)
Get the URL for the given resource class
public Resource getResource(Request request)
Given the request data and the loaded resource metadata, pick the best matching resource to handle the request based on URI and priority.
public str[] getResourceMetadata(Tonic/Resource resource)
Get the already loaded resource annotation metadata
A Tonic application