| @@ 35-41 (lines=7) @@ | ||
| 32 | /** |
|
| 33 | * @inheritDoc |
|
| 34 | */ |
|
| 35 | public function getNode(&$root, $path) |
|
| 36 | { |
|
| 37 | $context = (new Context()) |
|
| 38 | ->setIgnoreIllegal(false) |
|
| 39 | ->setIgnoreMissing(false); |
|
| 40 | return $this->traverse($root, $path, $context); |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @inheritDoc |
|
| @@ 46-52 (lines=7) @@ | ||
| 43 | /** |
|
| 44 | * @inheritDoc |
|
| 45 | */ |
|
| 46 | public function findNode(&$root, $path) |
|
| 47 | { |
|
| 48 | $context = (new Context()) |
|
| 49 | ->setIgnoreIllegal(true) |
|
| 50 | ->setIgnoreMissing(true); |
|
| 51 | return $this->traverse($root, $path, $context); |
|
| 52 | } |
|
| 53 | ||
| 54 | private function traverse(&$root, $path, Context $context) |
|
| 55 | { |
|