2017 © Pedro Peláez
 

library drupal-symfony-lock

Use Drupal's lock backends with Symfony's locking API.

image

lullabot/drupal-symfony-lock

Use Drupal's lock backends with Symfony's locking API.

  • Wednesday, July 11, 2018
  • by lullabot
  • Repository
  • 2 Watchers
  • 0 Stars
  • 765 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 259 % Grown

The README.md

Drupal Symfony Lock

CircleCI Maintainability Test Coverage, (*1)

Do you want to use a PHP library that requires Symfony's Lock Component in your Drupal site? This library maps Drupal's LockBackendInterface to a Symfony StoreInterface., (*2)

Usage

Require this library in your Drupal module:, (*3)

$ composer require lullabot/drupal-symfony-lock, (*4)

Inject lock service from the Drupal container, and use it when constructing this class:, (*5)

<?php

$backend = \Drupal::lock();
$store = new \Lullabot\DrupalSymfonyLock\DrupalStore($backend);
$factory = new \Symfony\Component\Lock\Factory($store);
$lock = $factory->createLock('lock-identifier', 10);

// Blocking means this will throw an exception on failure.
$lock->acquire(true);

The Versions

11/07 2018

dev-master

9999999-dev

Use Drupal's lock backends with Symfony's locking API.

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

11/07 2018

1.0.1

1.0.1.0

Use Drupal's lock backends with Symfony's locking API.

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

04/07 2018

dev-fix-reverse-wait

dev-fix-reverse-wait

Use Drupal's lock backends with Symfony's locking API.

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

04/05 2018

1.0.0

1.0.0.0

Use Drupal's lock backends with Symfony's locking API.

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

03/04 2018

dev-fix-expiration

dev-fix-expiration

Use Drupal's lock backends with Symfony's locking API.

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires