ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
RouteInterface.php
Go to the documentation of this file.
1 <?php
9 namespace Slim\Interfaces;
10 
14 
21 interface RouteInterface
22 {
23 
32  public function getArgument($name, $default = null);
33 
39  public function getArguments();
40 
46  public function getName();
47 
53  public function getPattern();
54 
63  public function setArgument($name, $value);
64 
72  public function setArguments(array $arguments);
73 
83  public function setOutputBuffering($mode);
84 
93  public function setName($name);
94 
104  public function add($callable);
105 
112  public function prepare(ServerRequestInterface $request, array $arguments);
113 
125  public function run(ServerRequestInterface $request, ResponseInterface $response);
126 
139  public function __invoke(ServerRequestInterface $request, ResponseInterface $response);
140 }
Slim Framework (https://slimframework.com)
Representation of an incoming, server-side HTTP request.
getArgument($name, $default=null)
Retrieve a specific route argument.
getPattern()
Get route pattern.
setArgument($name, $value)
Set a route argument.
setOutputBuffering($mode)
Set output buffering mode.
if($format !==null) $name
Definition: metadata.php:146
getArguments()
Get route arguments.
add($callable)
Add middleware.
Representation of an outgoing, server-side response.
__invoke(ServerRequestInterface $request, ResponseInterface $response)
Dispatch route callable against current Request and Response objects.
Create styles array
The data for the language used.
prepare(ServerRequestInterface $request, array $arguments)
Prepare the route for use.
setArguments(array $arguments)
Replace route arguments.
$response
setName($name)
Set route name.
run(ServerRequestInterface $request, ResponseInterface $response)
Run route.