Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2 into cach…
Browse files Browse the repository at this point in the history
…e_internals
  • Loading branch information
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/Server/Server.php
Expand Up @@ -80,11 +80,6 @@ class Server extends AbstractServer
*/
protected $_smdMethods;

/**
* @var \Zend\Server\Description
*/
protected $_table;

/**
* Attach a function or callback to the server
*
Expand Down Expand Up @@ -215,7 +210,7 @@ public function loadFunctions($definition)
}

foreach ($definition as $key => $method) {
$this->_table->addMethod($method, $key);
$this->table->addMethod($method, $key);
$this->_addMethodServiceMap($method);
}
}
Expand Down Expand Up @@ -534,12 +529,12 @@ protected function _handle()
}

$method = $request->getMethod();
if (!$this->_table->hasMethod($method)) {
if (!$this->table->hasMethod($method)) {
return $this->fault('Method not found', Error::ERROR_INVALID_METHOD);
}

$params = $request->getParams();
$invocable = $this->_table->getMethod($method);
$invocable = $this->table->getMethod($method);
$serviceMap = $this->getServiceMap();
$service = $serviceMap->getService($method);
$serviceParams = $service->getParams();
Expand Down

0 comments on commit 41746af

Please sign in to comment.