Guest User

Untitled

a guest
Oct 19th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. hphpd> =Facebook\HackRouter\PrefixMatching\PrefixMap::fromFlatMap(dict(keyset['foo', 'herp/foo/{abc}', 'herp/bar/{def}', 'herp/baz/{ghi}', 'herp/derp/foo/{abc}', 'herp/derp/baz/{abc}']))->getSerializable()
  2. Dict
  3. (
  4. [literals] => Dict
  5. (
  6. [foo] => "foo"
  7. )
  8.  
  9. [prefixes] => Dict
  10. (
  11. [herp/foo/] => Dict
  12. (
  13. [regexps] => Dict
  14. (
  15. [#(?<abc>[^/]+)#] => "herp/foo/{abc}"
  16. )
  17.  
  18. )
  19.  
  20. [herp/bar/] => Dict
  21. (
  22. [regexps] => Dict
  23. (
  24. [#(?<def>[^/]+)#] => "herp/bar/{def}"
  25. )
  26.  
  27. )
  28.  
  29. [herp/baz/] => Dict
  30. (
  31. [regexps] => Dict
  32. (
  33. [#(?<ghi>[^/]+)#] => "herp/baz/{ghi}"
  34. )
  35.  
  36. )
  37.  
  38. [herp/derp] => Dict
  39. (
  40. [prefixes] => Dict
  41. (
  42. [/foo/] => Dict
  43. (
  44. [regexps] => Dict
  45. (
  46. [#(?<abc>[^/]+)#] => "herp/derp/foo/{abc}"
  47. )
  48.  
  49. )
  50.  
  51. [/baz/] => Dict
  52. (
  53. [regexps] => Dict
  54. (
  55. [#(?<abc>[^/]+)#] => "herp/derp/baz/{abc}"
  56. )
  57.  
  58. )
  59.  
  60. )
  61.  
  62. )
  63.  
  64. )
  65.  
  66. )
Add Comment
Please, Sign In to add comment