/** * @param RequestInterface $request * @return string */ protected function buildServiceUrl(RequestInterface $request) { $serviceUrl = implode('/', [$this->baseUrl, Api::API_VERSION, $request->getService()]); return $serviceUrl; }
/** * {@inheritdoc} */ public function canBuild(RequestInterface $request, HttpResponseInterface $response) { return Api::SERVICE_PAGE === $request->getService(); }