public function deploy($method) { unset($method['id']); $method['status'] = Resource::STATUS_ACTIVE; if ($method['request'] > 0) { $method['requestCache'] = $this->getSchemaCache($method['request']); } if ($method['response'] > 0) { $method['responseCache'] = $this->getSchemaCache($method['response']); } if ($method['action'] > 0) { $method['actionCache'] = $this->getActionCache($method['action']); } $this->routesMethodTable->create($method); }