/** * @return boolean */ protected final function matchRequest(Request $request) { $match = false; if (!empty($this->hostname) && $this->hostname == $request->getHostname()) { $match = true; } if (!empty($this->uriPathPrefix)) { $match = strpos($request->getUri()->getPath(), $this->uriPathPrefix) === 0 ? true : false; } if ($match) { $this->isActive = true; } return $match; }