Tonic


Tonic\Application
src/Tonic/Application.php at line 8

Class Application

Application

public class Application

A Tonic 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

Constructor Detail

src/Tonic/Application.php at line 22

__construct

public void __construct(mixed options)

Method Detail

src/Tonic/Application.php at line 100

mount

public void mount(str namespaceName, str uriSpace)

Add a namespace to a specific URI-space


src/Tonic/Application.php at line 120

uri

public str uri(str className, str params)

Get the URL for the given resource class


src/Tonic/Application.php at line 153

getResource

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.


src/Tonic/Application.php at line 205

getResourceMetadata

public str[] getResourceMetadata(Tonic/Resource resource)

Get the already loaded resource annotation metadata


Tonic