You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
950 B

8 years ago
  1. <?hh
  2. namespace FastRoute\TestFixtures;
  3. function all_options_simple(): \FastRoute\Dispatcher {
  4. return \FastRoute\simpleDispatcher(
  5. $collector ==> {},
  6. shape(
  7. 'routeParser' => \FastRoute\RouteParser\Std::class,
  8. 'dataGenerator' => \FastRoute\DataGenerator\GroupCountBased::class,
  9. 'dispatcher' => \FastRoute\Dispatcher\GroupCountBased::class,
  10. 'routeCollector' => \FastRoute\RouteCollector::class,
  11. ),
  12. );
  13. }
  14. function all_options_cached(): \FastRoute\Dispatcher {
  15. return \FastRoute\cachedDispatcher(
  16. $collector ==> {},
  17. shape(
  18. 'routeParser' => \FastRoute\RouteParser\Std::class,
  19. 'dataGenerator' => \FastRoute\DataGenerator\GroupCountBased::class,
  20. 'dispatcher' => \FastRoute\Dispatcher\GroupCountBased::class,
  21. 'routeCollector' => \FastRoute\RouteCollector::class,
  22. 'cacheFile' => '/dev/null',
  23. 'cacheDisabled' => false,
  24. ),
  25. );
  26. }