public function setLockPath(string $path): Application
    {
        if (!is_dir($path)) {
            (new Filesystem())->mkdir($path);
        }
        if (!$realpath = realpath($path)) {
            throw new \InvalidArgumentException("The directory (" . $path . ") is unavailable");
        }

        $this->lockPath = $realpath;

        return $this;
    }