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 Slim\Routing\RoutingResults;
14
 
15
interface DispatcherInterface
16
{
17
    /**
18
     * Get routing results for a given request method and uri
19
     */
20
    public function dispatch(string $method, string $uri): RoutingResults;
21
 
22
    /**
23
     * Get allowed methods for a given uri
24
     *
25
     * @return string[]
26
     */
27
    public function getAllowedMethods(string $uri): array;
28
}