public function validateMountPath($inputPath, array $mounts)
    {
        $normalized = $this->normalizeRelativePath($inputPath);
        if (isset($mounts[$normalized])) {
            return $normalized;
        }

        throw new \InvalidArgumentException(sprintf('Mount not found: <error>%s</error>', $inputPath));
    }
public function validateMountPath($inputPath, array $mounts)
    {
        $normalized = $this->normalizeRelativePath($inputPath);
        if (isset($mounts[$normalized])) {
            return $normalized;
        }

        throw new \InvalidArgumentException(sprintf('Mount not found: <error>%s</error>', $inputPath));
    }
public function validateMountPath ( $ inputPath , array $ mounts ) { $ normalized = $ this -> normalizeRelativePath ( $ inputPath ) ; if ( isset ( $ mounts [ $ normalized ] ) ) { return $ normalized ; } throw new \ InvalidArgumentException ( sprintf ( 'Mount not found: <error>%s</error>' , $ inputPath ) ) ; }
Validate and normalize a path to a mount.

@param string $inputPath
@param array  $mounts

@return string
The normalized mount path.
Validate and normalize a path to a mount .