Tonic


Tyrell\Secret
src/Tyrell/Secret.php at line 17

Class Secret

Resource
└─Secret

public class Secret
extends Resource

Simple HTTP authentication example.

The condition annotation @secure maps to the secure() method allowing us to easily secure the mySecret() method with the given username and password

Uri:
/secret

Fields inherited from Tonic\Resource
params
Method Summary
void

mySecret()

void

secure(mixed username, mixed password)

Methods inherited from Tonic\Resource
__construct, accepts, after, before, cache, exec, lang, method, priority, provides

Method Detail

src/Tyrell/Secret.php at line 23

mySecret

public void mySecret()

Method:
GET
Secure:
aUser aPassword

src/Tyrell/Secret.php at line 27

secure

public void secure(mixed username, mixed password)

Tonic