mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-08-15 00:00:56 +00:00
- 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
29 lines
950 B
PHP
29 lines
950 B
PHP
<?hh
|
|
|
|
namespace FastRoute\TestFixtures;
|
|
|
|
function all_options_simple(): \FastRoute\Dispatcher {
|
|
return \FastRoute\simpleDispatcher(
|
|
$collector ==> {},
|
|
shape(
|
|
'routeParser' => \FastRoute\RouteParser\Std::class,
|
|
'dataGenerator' => \FastRoute\DataGenerator\GroupCountBased::class,
|
|
'dispatcher' => \FastRoute\Dispatcher\GroupCountBased::class,
|
|
'routeCollector' => \FastRoute\RouteCollector::class,
|
|
),
|
|
);
|
|
}
|
|
|
|
function all_options_cached(): \FastRoute\Dispatcher {
|
|
return \FastRoute\cachedDispatcher(
|
|
$collector ==> {},
|
|
shape(
|
|
'routeParser' => \FastRoute\RouteParser\Std::class,
|
|
'dataGenerator' => \FastRoute\DataGenerator\GroupCountBased::class,
|
|
'dispatcher' => \FastRoute\Dispatcher\GroupCountBased::class,
|
|
'routeCollector' => \FastRoute\RouteCollector::class,
|
|
'cacheFile' => '/dev/null',
|
|
'cacheDisabled' => false,
|
|
),
|
|
);
|
|
}
|