private function getTempDir(): string
    {
        $container = $this->getContainer();
        $tmpDir = sys_get_temp_dir().'/'.md5($container->getParameter('kernel.project_dir'));

        if (!is_dir($tmpDir)) {
            $container->get('filesystem')->mkdir($tmpDir);
        }

        return $tmpDir;
    }