src/Application.php
public function getLockFactory(): Factory
    {
        if ($this->lockFactory !== null) {
            return $this->lockFactory;
        }

        if (!is_dir($this->lockPath)) {
            (new Filesystem())->mkdir($this->lockPath);
        }
        $store = new FlockStore($this->lockPath);

        return $this->setLockStore($store);
    }
public function getLockFactory(): Factory
    {
        if ($this->lockFactory !== null) {
            return $this->lockFactory;
        }

        if (!is_dir($this->lockPath)) {
            (new Filesystem())->mkdir($this->lockPath);
        }
        $store = new FlockStore($this->lockPath);

        return $this->setLockStore($store);
    }
Get the lock factory in use.

@return Factory