ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
RouterInterface.php
Go to the documentation of this file.
1 <?php
9 namespace Slim\Interfaces;
10 
14 
21 interface RouterInterface
22 {
23  // array keys from route result
24  const DISPATCH_STATUS = 0;
25  const ALLOWED_METHODS = 1;
26 
36  public function map($methods, $pattern, $handler);
37 
47  public function dispatch(ServerRequestInterface $request);
48 
57  public function pushGroup($pattern, $callable);
58 
64  public function popGroup();
65 
75  public function getNamedRoute($name);
76 
82  public function lookupRoute($identifier);
83 
96  public function relativePathFor($name, array $data = [], array $queryParams = []);
97 
110  public function pathFor($name, array $data = [], array $queryParams = []);
111 }
Slim Framework (https://slimframework.com)
Representation of an incoming, server-side HTTP request.
foreach($paths as $path) $request
Definition: asyncclient.php:32
pushGroup($pattern, $callable)
Add a route group to the array.
getNamedRoute($name)
Get named route object.
popGroup()
Removes the last route group from the array.
pathFor($name, array $data=[], array $queryParams=[])
Build the path for a named route including the base path.
relativePathFor($name, array $data=[], array $queryParams=[])
Build the path for a named route excluding the base path.
$handler
map($methods, $pattern, $handler)
Add route.
dispatch(ServerRequestInterface $request)
Dispatch router for HTTP request.
$data
Definition: bench.php:6