Skip to content

Instantly share code, notes, and snippets.

@bakura10
Created February 16, 2014 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakura10/9038806 to your computer and use it in GitHub Desktop.
Save bakura10/9038806 to your computer and use it in GitHub Desktop.
// 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