D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
plib
/
modules
/
platform360
/
vendor
/
slim
/
slim
/
Slim
/
Interfaces
/
Filename :
RouteGroupInterface.php
back
Copy
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License) */ declare (strict_types=1); namespace Platform360\Slim\Interfaces; use Platform360\Psr\Http\Server\MiddlewareInterface; use Platform360\Slim\MiddlewareDispatcher; /** @api */ interface RouteGroupInterface { public function collectRoutes() : RouteGroupInterface; /** * Add middleware to the route group * * @param MiddlewareInterface|string|callable $middleware */ public function add($middleware) : RouteGroupInterface; /** * Add middleware to the route group */ public function addMiddleware(MiddlewareInterface $middleware) : RouteGroupInterface; /** * Append the group's middleware to the MiddlewareDispatcher * @param MiddlewareDispatcher<\Psr\Container\ContainerInterface|null> $dispatcher */ public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher) : RouteGroupInterface; /** * Get the RouteGroup's pattern */ public function getPattern() : string; }