all_options.php 950 B

1234567891011121314151617181920212223242526272829
  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. }