PackageRouter
class PackageRouter implements RouteBuilderInterface (View source)
The PackageRouter class, it is a decoration pattern to wrap package and router object.
Traits
The RouteBuilderTrait class.
Methods
string
route(string $route, array $queries = array(), string $type = MainRouter::TYPE_PATH)
build
mixed
__call(string $name, array $args)
__call
getRouter()
Method to get property Router
Route
getMatched()
getMatched
getPackage()
Method to get property Package
Details
at line line 60
string
route(string $route, array $queries = array(), string $type = MainRouter::TYPE_PATH)
build
in RouteBuilderTrait at line line 41
string
fullRoute(string $route, array $queries = array())
fullRoute
in RouteBuilderTrait at line line 54
string
rawRoute(string $route, array $queries = array())
rawRoute
in RouteBuilderTrait at line line 66
string
escape(string $text)
escape
at line line 43
__construct(MainRouter $router, AbstractPackage $package = null)
Class init.
at line line 94
mixed
__call(string $name, array $args)
__call
at line line 104
MainRouter
getRouter()
Method to get property Router
at line line 116
PackageRouter
setRouter(MainRouter $router)
Method to set property router
at line line 128
Route
getMatched()
getMatched
at line line 138
AbstractPackage
getPackage()
Method to get property Package
at line line 150
PackageRouter
setPackage(AbstractPackage $package = null)
Method to set property package