ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
RouterInterface.php
Go to the documentation of this file.
1<?php
9namespace Slim\Interfaces;
10
11use RuntimeException;
12use InvalidArgumentException;
14
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
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}
foreach($paths as $path) $request
Definition: asyncclient.php:32
An exception for terminatinating execution or to throw for unit testing.
Representation of an incoming, server-side HTTP request.
relativePathFor($name, array $data=[], array $queryParams=[])
Build the path for a named route excluding the base path.
pushGroup($pattern, $callable)
Add a route group to the array.
getNamedRoute($name)
Get named route object.
map($methods, $pattern, $handler)
Add route.
popGroup()
Removes the last route group from the array.
dispatch(ServerRequestInterface $request)
Dispatch router for HTTP request.
pathFor($name, array $data=[], array $queryParams=[])
Build the path for a named route including the base path.
Slim Framework (https://slimframework.com)
$handler
$data
Definition: bench.php:6