Created
February 16, 2014 18:47
-
-
Save bakura10/9038806 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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