foreach ($this->
getDirectories() as $path =>
$namespace) { if (!
str_starts_with($filesystemPath,
$path.\DIRECTORY_SEPARATOR
)) { continue;
} $logicalPath =
substr($filesystemPath, \
strlen($path));
if ('' !==
$namespace) { $logicalPath =
$namespace.'/'.
ltrim($logicalPath, '/\\'
);
} return $this->
normalizeLogicalPath($logicalPath);
} return null;
} /**
* Returns an array of all files in the asset_mapper.
*
* Key is the logical path, value is the absolute path.
*
* @return string[]
*/