isExcluded example

$localLogicalPath = $logicalPath;
            // if this path has a namespace, only look for files in that namespace             if ('' !== $namespace) {
                if (!str_starts_with($logicalPathrtrim($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;
        }
Home | Imprint | This part of the site doesn't use cookies.