Router
extends Router
Table of Contents
Properties
-
$classBuilder
: DependencyInjectionClassBuilder
Methods
-
__construct()
: mixed
-
add()
: RouteInterface
-
addConnect()
: RouteInterface
-
addDelete()
: RouteInterface
-
addGet()
: RouteInterface
-
addHead()
: RouteInterface
-
addOptions()
: RouteInterface
-
addPatch()
: RouteInterface
-
addPost()
: RouteInterface
-
addPurge()
: RouteInterface
-
addPut()
: RouteInterface
-
addTrace()
: RouteInterface
__construct()
public
__construct(DependencyInjectionClassBuilder $classBuilder[, bool $defaultRoutes = true ]) : mixed
Parameters
-
$classBuilder
: DependencyInjectionClassBuilder
-
-
$defaultRoutes
: bool
= true
-
add()
public
add(string $pattern[, mixed $paths = null ][, mixed $httpMethods = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$httpMethods
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addConnect()
public
addConnect(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addDelete()
public
addDelete(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addGet()
public
addGet(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addHead()
public
addHead(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addOptions()
public
addOptions(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addPatch()
public
addPatch(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addPost()
public
addPost(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addPurge()
public
addPurge(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addPut()
public
addPut(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface
addTrace()
public
addTrace(string $pattern[, mixed $paths = null ][, int $position = Router::POSITION_LAST ]) : RouteInterface
Parameters
-
$pattern
: string
-
-
$paths
: mixed
= null
-
-
$position
: int
= Router::POSITION_LAST
-
Return values
RouteInterface