Index Documentation

HandlerAttribute
in package

AbstractYes

Provides base for attributes that mark methods in a class as handlers.

Table of Contents

Methods

__construct()  : mixed
getPath()  : string
Returns the target path.
register()  : void
Reads attributes from methods in a RouteHandler instance and registers them to a given Router instance.

Methods

__construct()

public __construct(string $path) : mixed
Parameters
$path : string

Target path.

getPath()

Returns the target path.

public getPath() : string
Return values
string

register()

Reads attributes from methods in a RouteHandler instance and registers them to a given Router instance.

public static register(Router $router, RouteHandler $handler) : void
Parameters
$router : Router

Router instance.

$handler : RouteHandler

Handler instance.


        
On this page

Search results