Get the firewall with the specific path.
@param string $path
@return FirewallInterface
358909
public function getFirewall($path = null)
    {
        if (!$path) {
            $path = $this->getCurrentPathRelativeToBase();
        }
        foreach ($this->firewalls as $firewall) {
            if ($firewall->isPathCovered($path)) {
                return $firewall;
            }
        }
        return null;
    }
815424
public function get($path)
    {
        return $this->settingManager->get($path, $this->tokenStorage->getToken()->getUsername());
    }
1328037
protected function get_by_path(array $path) {
        $node = $this->get(array_shift($path));
        foreach ($path as $key) {
            $node->get($key);
        }
        return $node;
    }
75989
public function getUrlForRelativePath($path)
    {
        return $this->getUrlForPath(
            $this->_joinPathComponents($this->getPath(), ltrim($path, '/')));
    }
82452
public function resolve($path)
    {
        // For AWS SDK v2
        if ($this->service instanceof \Aws\Common\Client\AbstractClient) {
            return $this->service->getObjectUrl(
                $this->bucket,
                $this->computePath($path),
                $this->expiresAt
            );
        }

        // For AWS SDK v3
        $command = $this->service->getCommand('GetObject', [
            'Bucket' => $this->bucket,
            'Key'    => $this->computePath($path),
        ]);

        return (string) $this->service->createPresignedRequest($command, $this->expiresAt)->getUri();
    }
1253053
public function getPathChild(array $path): NodeInterface
    {
        $child = $this;

        foreach ($path as $name) {
            $child = $child->getChild($name);
        }

        return $child;
    }
1343244
protected static function security($firewall = null)
    {
        if($firewall) {
            return Security::getInstance()->firewall($firewall);
        }

        return Security::getInstance();
    }
1113812
private function getPath($path)
    {
        $uri = parse_url($path);

        $stream = $this->getStreamByPathScheme($path);
        if ($stream instanceof StreamInterface) {
            foreach ($stream->getPaths() as $streamDomain => $streamPath) {
                if ($streamDomain === $uri['host']) {
                    $realPath = $this->getRealPath($uri, $streamPath);
                    if (strpos($realPath, $streamPath) === 0) {
                        return $realPath;
                    }
                }
            }
        }
    }
1074315
public function getUrl($path) {
        $mapping = $this->mapper->get($path);

        if (!$mapping) {
            return false;
        }

        try {
            $volume = $this->client->lookup($mapping['fid']);

            return $this->client->buildVolumeUrl($volume->getPublicUrl(), $mapping['fid']);
        } catch (SeaweedFSException $e) {
            return false;
        }
    }
170991
public function getDirectory($path)
    {
        $subDirectory = new self($this->getFileSystemId(), $this->getFullPath($path));
        $subDirectory->setServiceLocator($this->getServiceLocator());
        return $subDirectory;
    }
705166
public function getRoute($path = null)
    {
        // check the path
        if (!$path || ($this->path && $path != $this->path)){
            $urlParts = $this->urlPart;
        } else {
            $urlParts = $this->parsePath($path);
        }
        return $this->routeSystem->getRoute($urlParts);
    }
1356912
public function path($path) {
		$path = explode('/', $path);
		for ($i = 0; $i < count($path); $i++) {
			$path[$i] = urlencode($path[$i]);
		}

		$this->path = implode('/', $path);
		return $this;
	}
1068808
public function extension($path)
	{
		$path = Util::normalizePath($path);

		return $this->adapter->extension($path);
	}
315112
public function getAsset(string $path): string
    {
        return $this->router->getConfiguration()->getBaseUrl() . ltrim($path, '/');
    }
998457
public function url($path)
    {
        $protocol = "http" . $this->isSecure();

        return $protocol . $_SERVER['HTTP_HOST'] .$this->getBaseUri() . $path;
    }
295898
public final function withPath($path): UriInterface
   {
       try {
           $uri = parent::withPath($path);
       } catch (InvalidArgumentException $e) {
           throw $e;
       }
       if ($uri->redirect) {
           $uri->redirect = "";
       }
       return $uri;
   }
360118
protected function wrapPath($path)
    {
        $scheme = $this->vfs->scheme().'://';
        $path   = str_replace($scheme, null, $path);

        return $scheme.$path;
    }