_resources, $resource); } public function match($uri) { foreach ($this->_resources as $resource) { $spec = $resource::getURISpec(); $result = $spec->match($uri); if ($result == null) { continue; } $result['class'] = $resource; return $result; } return null; } }