class Routes implements ExtenderInterface

Methods

__construct(string $appName)

No description

get(string $path, string $name, $handler)

<p>Add a GET route.</p>

post(string $path, string $name, $handler)

<p>Add a POST route.</p>

put(string $path, string $name, $handler)

<p>Add a PUT route.</p>

patch(string $path, string $name, $handler)

<p>Add a PATCH route.</p>

delete(string $path, string $name, $handler)

<p>Add a DELETE route.</p>

remove(string $name)

<p>Remove an existing route.</p>

extend(Container $container, Extension $extension = null)

No description

Details

__construct(string $appName)

Parameters

string $appName

Routes get(string $path, string $name, $handler)

<p>Add a GET route.</p>

Parameters

string $path
string $name
$handler

Return Value

Routes

Routes post(string $path, string $name, $handler)

<p>Add a POST route.</p>

Parameters

string $path
string $name
$handler

Return Value

Routes

Routes put(string $path, string $name, $handler)

<p>Add a PUT route.</p>

Parameters

string $path
string $name
$handler

Return Value

Routes

Routes patch(string $path, string $name, $handler)

<p>Add a PATCH route.</p>

Parameters

string $path
string $name
$handler

Return Value

Routes

Routes delete(string $path, string $name, $handler)

<p>Add a DELETE route.</p>

Parameters

string $path
string $name
$handler

Return Value

Routes

Routes remove(string $name)

<p>Remove an existing route.</p>

<p>Necessary before overriding a route.</p>

Parameters

string $name

Return Value

Routes

extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension