Skip to content

Instantly share code, notes, and snippets.



Created Feb 16, 2014
What would you like to do?
// We have traversed the whole path, return the last matched path!
if (empty($subPath)) {
if ($previousMatch === null) {
$data = $resource->getData();
$data = $data->matching(new Criteria());
return new SubPathMatch(new Resource($data, $resource->getMetadata()), $subPath);
return $previousMatch;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment