ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
RouteInterface.php
Go to the documentation of this file.
1<?php
9namespace Slim\Interfaces;
10
11use InvalidArgumentException;
14
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
126
140}
foreach($paths as $path) $request
Definition: asyncclient.php:32
$default
Definition: build.php:20
An exception for terminatinating execution or to throw for unit testing.
Representation of an outgoing, server-side response.
Representation of an incoming, server-side HTTP request.
getPattern()
Get route pattern.
setName($name)
Set route name.
add($callable)
Add middleware.
getArgument($name, $default=null)
Retrieve a specific route argument.
prepare(ServerRequestInterface $request, array $arguments)
Prepare the route for use.
getArguments()
Get route arguments.
setOutputBuffering($mode)
Set output buffering mode.
setArgument($name, $value)
Set a route argument.
setArguments(array $arguments)
Replace route arguments.
run(ServerRequestInterface $request, ResponseInterface $response)
Run route.
__invoke(ServerRequestInterface $request, ResponseInterface $response)
Dispatch route callable against current Request and Response objects.
Slim Framework (https://slimframework.com)
$response