/** * @param RequestInterface $request * @return string */ protected function processUrl(RequestInterface $request) { return $request->getProtocol() . $request->getDomain() . '/v' . $request->getGraphVersion() . $request->getPath(); }
/** * @param RequestInterface $request * @return string */ protected function processUrl(RequestInterface $request) { $path = $request->getPath(); if (!$this->showSensitiveData) { $path = preg_replace(array('/\\/act_\\d+(\\/|$)/i', '/\\/\\d+(\\/|$)/'), array('/act_<AD_ACCOUNT_ID>$1', '/<OBJECT_ID>$1'), $path); } return $request->getProtocol() . $request->getDomain() . '/v' . $request->getGraphVersion() . $path; }