url_matcher2.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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\Tests\Fixtures\RedirectableUrlMatcher
  9. {
  10. use PhpMatcherTrait;
  11. public function __construct(RequestContext $context)
  12. {
  13. $this->context = $context;
  14. $this->matchHost = true;
  15. $this->staticRoutes = [
  16. '/test/baz' => [[['_route' => 'baz'], null, null, null, false, false, null]],
  17. '/test/baz.html' => [[['_route' => 'baz2'], null, null, null, false, false, null]],
  18. '/test/baz3' => [[['_route' => 'baz3'], null, null, null, true, false, null]],
  19. '/foofoo' => [[['_route' => 'foofoo', 'def' => 'test'], null, null, null, false, false, null]],
  20. '/spa ce' => [[['_route' => 'space'], null, null, null, false, false, null]],
  21. '/multi/new' => [[['_route' => 'overridden2'], null, null, null, false, false, null]],
  22. '/multi/hey' => [[['_route' => 'hey'], null, null, null, true, false, null]],
  23. '/ababa' => [[['_route' => 'ababa'], null, null, null, false, false, null]],
  24. '/route1' => [[['_route' => 'route1'], 'a.example.com', null, null, false, false, null]],
  25. '/c2/route2' => [[['_route' => 'route2'], 'a.example.com', null, null, false, false, null]],
  26. '/route4' => [[['_route' => 'route4'], 'a.example.com', null, null, false, false, null]],
  27. '/c2/route3' => [[['_route' => 'route3'], 'b.example.com', null, null, false, false, null]],
  28. '/route5' => [[['_route' => 'route5'], 'c.example.com', null, null, false, false, null]],
  29. '/route6' => [[['_route' => 'route6'], null, null, null, false, false, null]],
  30. '/route11' => [[['_route' => 'route11'], '#^(?P<var1>[^\\.]++)\\.example\\.com$#sDi', null, null, false, false, null]],
  31. '/route12' => [[['_route' => 'route12', 'var1' => 'val'], '#^(?P<var1>[^\\.]++)\\.example\\.com$#sDi', null, null, false, false, null]],
  32. '/route17' => [[['_route' => 'route17'], null, null, null, false, false, null]],
  33. '/secure' => [[['_route' => 'secure'], null, null, ['https' => 0], false, false, null]],
  34. '/nonsecure' => [[['_route' => 'nonsecure'], null, null, ['http' => 0], false, false, null]],
  35. ];
  36. $this->regexpList = [
  37. 0 => '{^(?'
  38. .'|(?:(?:[^./]*+\\.)++)(?'
  39. .'|/foo/(baz|symfony)(*:47)'
  40. .'|/bar(?'
  41. .'|/([^/]++)(*:70)'
  42. .'|head/([^/]++)(*:90)'
  43. .')'
  44. .'|/test/([^/]++)(?'
  45. .'|(*:115)'
  46. .')'
  47. .'|/([\']+)(*:131)'
  48. .'|/a/(?'
  49. .'|b\'b/([^/]++)(?'
  50. .'|(*:160)'
  51. .'|(*:168)'
  52. .')'
  53. .'|(.*)(*:181)'
  54. .'|b\'b/([^/]++)(?'
  55. .'|(*:204)'
  56. .'|(*:212)'
  57. .')'
  58. .')'
  59. .'|/multi/hello(?:/([^/]++))?(*:248)'
  60. .'|/([^/]++)/b/([^/]++)(?'
  61. .'|(*:279)'
  62. .'|(*:287)'
  63. .')'
  64. .'|/aba/([^/]++)(*:309)'
  65. .')|(?i:([^\\.]++)\\.example\\.com)\\.(?'
  66. .'|/route1(?'
  67. .'|3/([^/]++)(*:371)'
  68. .'|4/([^/]++)(*:389)'
  69. .')'
  70. .')|(?i:c\\.example\\.com)\\.(?'
  71. .'|/route15/([^/]++)(*:441)'
  72. .')|(?:(?:[^./]*+\\.)++)(?'
  73. .'|/route16/([^/]++)(*:489)'
  74. .'|/a/(?'
  75. .'|a\\.\\.\\.(*:510)'
  76. .'|b/(?'
  77. .'|([^/]++)(*:531)'
  78. .'|c/([^/]++)(*:549)'
  79. .')'
  80. .')'
  81. .')'
  82. .')/?$}sD',
  83. ];
  84. $this->dynamicRoutes = [
  85. 47 => [[['_route' => 'foo', 'def' => 'test'], ['bar'], null, null, false, true, null]],
  86. 70 => [[['_route' => 'bar'], ['foo'], ['GET' => 0, 'HEAD' => 1], null, false, true, null]],
  87. 90 => [[['_route' => 'barhead'], ['foo'], ['GET' => 0], null, false, true, null]],
  88. 115 => [
  89. [['_route' => 'baz4'], ['foo'], null, null, true, true, null],
  90. [['_route' => 'baz5'], ['foo'], ['POST' => 0], null, true, true, null],
  91. [['_route' => 'baz.baz6'], ['foo'], ['PUT' => 0], null, true, true, null],
  92. ],
  93. 131 => [[['_route' => 'quoter'], ['quoter'], null, null, false, true, null]],
  94. 160 => [[['_route' => 'foo1'], ['foo'], ['PUT' => 0], null, false, true, null]],
  95. 168 => [[['_route' => 'bar1'], ['bar'], null, null, false, true, null]],
  96. 181 => [[['_route' => 'overridden'], ['var'], null, null, false, true, null]],
  97. 204 => [[['_route' => 'foo2'], ['foo1'], null, null, false, true, null]],
  98. 212 => [[['_route' => 'bar2'], ['bar1'], null, null, false, true, null]],
  99. 248 => [[['_route' => 'helloWorld', 'who' => 'World!'], ['who'], null, null, false, true, null]],
  100. 279 => [[['_route' => 'foo3'], ['_locale', 'foo'], null, null, false, true, null]],
  101. 287 => [[['_route' => 'bar3'], ['_locale', 'bar'], null, null, false, true, null]],
  102. 309 => [[['_route' => 'foo4'], ['foo'], null, null, false, true, null]],
  103. 371 => [[['_route' => 'route13'], ['var1', 'name'], null, null, false, true, null]],
  104. 389 => [[['_route' => 'route14', 'var1' => 'val'], ['var1', 'name'], null, null, false, true, null]],
  105. 441 => [[['_route' => 'route15'], ['name'], null, null, false, true, null]],
  106. 489 => [[['_route' => 'route16', 'var1' => 'val'], ['name'], null, null, false, true, null]],
  107. 510 => [[['_route' => 'a'], [], null, null, false, false, null]],
  108. 531 => [[['_route' => 'b'], ['var'], null, null, false, true, null]],
  109. 549 => [[['_route' => 'c'], ['var'], null, null, false, true, null]],
  110. ];
  111. }
  112. }