context = $context; } public function match($pathinfo) { $allow = array(); $pathinfo = urldecode($pathinfo); throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException(); } }