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;
    }
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;
    }
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 ; }
Set the path for the directory where lock files are stored.

@param string $path The path to use

@return $this
Set the path for the directory where lock files are stored .