This bundle integrates the symfony/lock capabilities into kernel.controller events.
The IXarlieMutexBundle has the following requirements:
- PHP 8.1+
- Symfony 6.4 or Symfony 7.4
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-bundleThis command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
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],
];# config/packages/i_xarlie_mutex.yaml
i_xarlie_mutex:
# Add the Symfony lock factories services id
factories:
- 'lock.default.factory'This bundle is under the MIT license. See the complete license in the bundle.