Skip to content

ixarlie/mutex-bundle

Repository files navigation

IXarlie Mutex Bundle

This bundle integrates the symfony/lock capabilities into kernel.controller events.

CI CI Code Quality Packagist

Prerequisites

The IXarlieMutexBundle has the following requirements:

  • PHP 8.1+
  • Symfony 6.4 or Symfony 7.4

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require ixarlie/mutex-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

// config/bundles.php

return [
    // ...
    IXarlie\MutexBundle\IXarlieMutexBundle::class => ['all' => true],
];

Step 3: Configure the Bundle

# config/packages/i_xarlie_mutex.yaml
i_xarlie_mutex:
    # Add the Symfony lock factories services id
    factories:
        - 'lock.default.factory'

Documentation

License

This bundle is under the MIT license. See the complete license in the bundle.

About

A Symfony bundle for Mutex implementation for PHP

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages