protected function isWhitelisted($uri) { $whiteList = static::$configuration->getWhiteList(); if (empty($whiteList)) { return true; } $uri = $this->normalizePath($uri); foreach ($whiteList as $path) { if (strpos($uri, $path) !== false) { return true; } } return false; }