Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
namespace FastRoute;
4
 
5
interface Dispatcher
6
{
7
    const NOT_FOUND = 0;
8
    const FOUND = 1;
9
    const METHOD_NOT_ALLOWED = 2;
10
 
11
    /**
12
     * Dispatches against the provided HTTP method verb and URI.
13
     *
14
     * Returns array with one of the following formats:
15
     *
16
     *     [self::NOT_FOUND]
17
     *     [self::METHOD_NOT_ALLOWED, ['GET', 'OTHER_ALLOWED_METHODS']]
18
     *     [self::FOUND, $handler, ['varName' => 'value', ...]]
19
     *
20
     * @param string $httpMethod
21
     * @param string $uri
22
     *
23
     * @return array
24
     */
25
    public function dispatch($httpMethod, $uri);
26
}