src/Event.php
protected function createLockObject()
    {
        $this->checkLockFactory();

        if (null === $this->lock && null !== $this->lockFactory) {
            $ttl = 30;

            $this->lock = $this->lockFactory
                ->createLock($this->lockKey(), $ttl);
        }

        return $this->lock;
    }
protected function createLockObject()
    {
        $this->checkLockFactory();

        if (null === $this->lock && null !== $this->lockFactory) {
            $ttl = 30;

            $this->lock = $this->lockFactory
                ->createLock($this->lockKey(), $ttl);
        }

        return $this->lock;
    }
protected function createLockObject ( ) { $ this -> checkLockFactory ( ) ; if ( null === $ this -> lock && null !== $ this -> lockFactory ) { $ ttl = 30 ; $ this -> lock = $ this -> lockFactory -> createLock ( $ this -> lockKey ( ) , $ ttl ) ; } return $ this -> lock ; }
Get the symfony lock object for the task.

@return Lock
Get the symfony lock object for the task .