url_matcher3.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Symfony\Component\Routing\Matcher\Dumper\PhpMatcherTrait;
  3. use Symfony\Component\Routing\RequestContext;
  4. /**
  5. * This class has been auto-generated
  6. * by the Symfony Routing Component.
  7. */
  8. class ProjectUrlMatcher extends Symfony\Component\Routing\Matcher\UrlMatcher
  9. {
  10. use PhpMatcherTrait;
  11. public function __construct(RequestContext $context)
  12. {
  13. $this->context = $context;
  14. $this->staticRoutes = [
  15. '/rootprefix/test' => [[['_route' => 'static'], null, null, null, false, false, null]],
  16. '/with-condition' => [[['_route' => 'with-condition'], null, null, null, false, false, -1]],
  17. ];
  18. $this->regexpList = [
  19. 0 => '{^(?'
  20. .'|/rootprefix/([^/]++)(*:27)'
  21. .')/?$}sD',
  22. ];
  23. $this->dynamicRoutes = [
  24. 27 => [[['_route' => 'dynamic'], ['var'], null, null, false, true, null]],
  25. ];
  26. $this->checkCondition = static function ($condition, $context, $request) {
  27. switch ($condition) {
  28. case -1: return ($context->getMethod() == "GET");
  29. }
  30. };
  31. }
  32. }