private function getPathRelativeToProjectDir(string $absolute): string
    {
        $projectDir = $this->kernel->getProjectDir();
        $relative = str_replace($projectDir, '', $absolute);
        $relative = ltrim($relative, '/');

        return $relative;
    }
private function getPathRelativeToProjectDir(string $absolute): string
    {
        $projectDir = $this->kernel->getProjectDir();
        $relative = str_replace($projectDir, '', $absolute);
        $relative = ltrim($relative, '/');

        return $relative;
    }
private function getPathRelativeToProjectDir ( string $ absolute ) : string { $ projectDir = $ this -> kernel -> getProjectDir ( ) ; $ relative = str_replace ( $ projectDir , '' , $ absolute ) ; $ relative = ltrim ( $ relative , '/' ) ; return $ relative ; }
return a path relative to the project dir
return a path relative to the project dir