Download the PHP package ffreitas-br/command-lock-bundle without Composer
On this page you can find all versions of the php package ffreitas-br/command-lock-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ffreitas-br/command-lock-bundle
More information about ffreitas-br/command-lock-bundle
Files in ffreitas-br/command-lock-bundle
Package command-lock-bundle
Short Description Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously
License MIT
Homepage https://github.com/ffreitas-br/command-lock-bundle
Informations about the package command-lock-bundle
command-lock-bundle
This command-lock-bundle
when installed prevents two or more of same command runs simultaneously.
Installation
To install command-lock-bundle
you will need just a few minutes.
1) Include the command-lock-bundle
in the required
section of composer.json
.
composer.json
After this run composer update
or composer intall
to refresh your dependencies.
2) Register the bundle in your Kernel.
app/AppKernel.php
3) Configure the directory where the pid lock files will be stored.
app/config/config.yml
Don't worry
if you don't have the directories created yet, the bundle will take care of this for you.
4) [OPTIONAL] Configure a list of exceptions.
app/config/config.yml
The commands listed in this configurations will be allowed to run simultaneously.
Now you have the command-lock-bundle
installed and configured, it will now prevents two or more of same command runs simultaneously.