$localLogicalPath =
$logicalPath;
// if this path has a namespace, only look for files in that namespace
if ('' !==
$namespace) { if (!
str_starts_with($logicalPath,
rtrim($namespace, '/'
).'/'
)) { continue;
} $localLogicalPath =
substr($logicalPath, \
strlen($namespace) + 1
);
} $file =
rtrim($path, '/'
).'/'.
$localLogicalPath;
if (is_file($file) && !
$this->
isExcluded($file)) { return realpath($file);
} } return null;
} public function findLogicalPath(string
$filesystemPath): ?string
{ if (!
is_file($filesystemPath)) { return null;
}