mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-09-15 03:15:21 +00:00
20862be7d0
- slim/slim: ^3.1 - symfony/expression-language: ^3.4 - fxp/composer-asset-plugin: ~1.3 - bower-asset/vue: ^2.5 - bower-asset/vue-resource: ^1.5
26 lines
682 B
PHP
26 lines
682 B
PHP
<?php
|
|
|
|
namespace FastRoute;
|
|
|
|
interface DataGenerator
|
|
{
|
|
/**
|
|
* Adds a route to the data generator. The route data uses the
|
|
* same format that is returned by RouterParser::parser().
|
|
*
|
|
* The handler doesn't necessarily need to be a callable, it
|
|
* can be arbitrary data that will be returned when the route
|
|
* matches.
|
|
*
|
|
* @param string $httpMethod
|
|
* @param array $routeData
|
|
* @param mixed $handler
|
|
*/
|
|
public function addRoute($httpMethod, $routeData, $handler);
|
|
|
|
/**
|
|
* Returns dispatcher data in some unspecified format, which
|
|
* depends on the used method of dispatch.
|
|
*/
|
|
public function getData();
|
|
}
|