Skip to content

Instantly share code, notes, and snippets.

@bakura10 bakura10/test.php
Created Feb 16, 2014

Embed
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
You can’t perform that action at this time.