You are here

sfMergeKey.yml in Loft Data Grids 7.2

vendor/symfony/yaml/Tests/Fixtures/sfMergeKey.yml

File

vendor/symfony/yaml/Tests/Fixtures/sfMergeKey.yml
View source
  1. --- %YAML:1.0
  2. test: Simple In Place Substitution
  3. brief: >
  4. If you want to reuse an entire alias, only overwriting what is different
  5. you can use a << in place substitution. This is not part of the official
  6. YAML spec, but a widely implemented extension. See the following URL for
  7. details: http://yaml.org/type/merge.html
  8. yaml: |
  9. foo: &foo
  10. a: Steve
  11. b: Clark
  12. c: Brian
  13. e: notnull
  14. bar:
  15. a: before
  16. d: other
  17. e: ~
  18. <<: *foo
  19. b: new
  20. x: Oren
  21. c:
  22. foo: bar
  23. foo: ignore
  24. bar: foo
  25. bar_inline: {a: before, d: other, <<: *foo, b: new, x: Oren, c: { foo: bar, foo: ignore, bar: foo}}
  26. duplicate:
  27. foo: bar
  28. foo: ignore
  29. foo2: &foo2
  30. a: Ballmer
  31. ding: &dong [ fi, fei, fo, fam]
  32. check:
  33. <<:
  34. - *foo
  35. - *dong
  36. isit: tested
  37. head:
  38. <<: [ *foo , *dong , *foo2 ]
  39. taz: &taz
  40. a: Steve
  41. w:
  42. p: 1234
  43. nested:
  44. <<: *taz
  45. d: Doug
  46. w: &nestedref
  47. p: 12345
  48. z:
  49. <<: *nestedref
  50. head_inline: &head_inline { <<: [ *foo , *dong , *foo2 ] }
  51. recursive_inline: { <<: *head_inline, c: { <<: *foo2 } }
  52. php: |
  53. array(
  54. 'foo' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull'),
  55. 'bar' => array('a' => 'before', 'd' => 'other', 'e' => null, 'b' => 'new', 'c' => array('foo' => 'bar', 'bar' => 'foo'), 'x' => 'Oren'),
  56. 'bar_inline' => array('a' => 'before', 'd' => 'other', 'b' => 'new', 'c' => array('foo' => 'bar', 'bar' => 'foo'), 'e' => 'notnull', 'x' => 'Oren'),
  57. 'duplicate' => array('foo' => 'bar'),
  58. 'foo2' => array('a' => 'Ballmer'),
  59. 'ding' => array('fi', 'fei', 'fo', 'fam'),
  60. 'check' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam', 'isit' => 'tested'),
  61. 'head' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam'),
  62. 'taz' => array('a' => 'Steve', 'w' => array('p' => 1234)),
  63. 'nested' => array('a' => 'Steve', 'w' => array('p' => 12345), 'd' => 'Doug', 'z' => array('p' => 12345)),
  64. 'head_inline' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam'),
  65. 'recursive_inline' => array('a' => 'Steve', 'b' => 'Clark', 'c' => array('a' => 'Ballmer'), 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam'),
  66. )