public static function lockExists($id, $path)
    {
        $lockFile = self::__generateLockFileName($id, $path);

        return file_exists($lockFile);
    }
public static function lockExists($id, $path)
    {
        $lockFile = self::__generateLockFileName($id, $path);

        return file_exists($lockFile);
    }
public static function lockExists ( $ id , $ path ) { $ lockFile = self :: __generateLockFileName ( $ id , $ path ) ; return file_exists ( $ lockFile ) ; }
Checks if a lock exists, purely on the presence on the lock file.
This function takes the unobfuscated lock name
Others should not depend on value returned by this function,
because by the time it returns, the lock file can be created or deleted
by another thread.

@since Symphony 2.2
@param string $id
The name of the lock file, which gets obfuscated using
generateLockFileName.
@param string $path
The path the lock should be written, defaults to the current
working directory
@return boolean
Checks if a lock exists purely on the presence on the lock file . This function takes the unobfuscated lock name Others should not depend on value returned by this function because by the time it returns the lock file can be created or deleted by another thread .