Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
/**
4
 * Slim Framework (https://slimframework.com)
5
 *
6
 * @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License)
7
 */
8
 
9
declare(strict_types=1);
10
 
11
namespace Slim\Interfaces;
12
 
13
use Psr\Http\Server\MiddlewareInterface;
14
use Slim\MiddlewareDispatcher;
15
 
16
interface RouteGroupInterface
17
{
18
    public function collectRoutes(): RouteGroupInterface;
19
 
20
    /**
21
     * Add middleware to the route group
22
     *
23
     * @param MiddlewareInterface|string|callable $middleware
24
     */
25
    public function add($middleware): RouteGroupInterface;
26
 
27
    /**
28
     * Add middleware to the route group
29
     */
30
    public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface;
31
 
32
    /**
33
     * Append the group's middleware to the MiddlewareDispatcher
34
     */
35
    public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface;
36
 
37
    /**
38
     * Get the RouteGroup's pattern
39
     */
40
    public function getPattern(): string;
41
}