abstract class Treaty (View source)

Constants

SLASH

NOSLASH

Properties

protected int $format
static protected string $valids

Methods

route(App $context)

Define routes based on class methods

static mixed
action(App $context)

Define routes based on class methods

static string
parsePath(string $path)

Overwrite path parser

Details

route(App $context)

Define routes based on class methods

Parameters

App $context

Exceptions

Exception

static mixed action(App $context)

Define routes based on class methods

Parameters

App $context

Return Value

mixed

Exceptions

Exception

static protected string parsePath(string $path)

Overwrite path parser

Parameters

string $path

Return Value

string