Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Resource Lock Bundle Laravel Package

aboutcoders/resource-lock-bundle

Symfony bundle providing a resource locking system backed by ORM. Configure a default lock manager and optional custom managers with prefixes, then fetch lock manager services from the container to set, get, and check locks across your app.

View on GitHub
Deep Wiki
Context7

Symfony Resource Lock Bundle

A Symfony bundle that provides resource lock implementation

Build Status

Installation

Add the AbcResourceLockBundle to your composer.json file

{
    "require": {
        "aboutcoders/resource-lock-bundle": "dev-master"
    }
}

Include the bundle in the AppKernel.php class

public function registerBundles()
{
    $bundles = array(
        // ...
        new Abc\Bundle\ResourceLockBundle\AbcResourceLockBundle(),
    );

    return $bundles;
}

Configuration

Configure the bundle

# app/config/config.yml
abc_resource_lock:
  db_driver: orm

You can define custom managers with a custom prefix within the managers section

# app/config/config.yml
abc_resource_lock:
  db_driver: orm
  managers:
    my_manager:
        prefix: my_prefix
    another_manager:
        prefix: another_prefix

Usage

Use Lock manager to get, set or check locks:

$container->get('abc.resource_lock.lock_manager');

To retrieve the custom manager from the service container you have to specify it by its name:

$container->get('abc.resource_lock.lock_manager_my_manager');

License

The MIT License (MIT). Please see License File for more information.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels