21 use CallableResolverAwareTrait;
42 protected $middleware = [];
58 return $this->middleware;
68 return $this->pattern;
91 public function add($callable)
104 $this->pattern = $newPattern;
An exception for terminatinating execution or to throw for unit testing.
add($callable)
Prepend middleware to the middleware collection.
setPattern($newPattern)
Set the route pattern.
setContainer(ContainerInterface $container)
Set container for use with resolveCallable.
getPattern()
Get the route pattern.
getMiddleware()
Get the middleware registered for the group.
Describes the interface of a container that exposes methods to read its entries.
Describes the interface of a container that exposes methods to read its entries.
Slim Framework (https://slimframework.com)