ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
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}
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.
if($format !==null) $name
Definition: metadata.php:146
Slim Framework (https://slimframework.com)
$handler