/** * @param \FREST\Resource $resource */ private function setupResource($resource) { $resource->setDefaultLimit($this->config->getDefaultLimit()); $resource->setMaxLimit($this->config->getMaxLimit()); $resource->setAllowWildcards($this->config->getAllowWildcards()); $resource->setAllowFieldsParameter($this->config->getAllowFieldsParameter()); $resource->setAllowPartialSyntax($this->config->getAllowPartialSyntax()); $resource->setup(); // this is where Settings are created by custom class }