PHPackages                             ffreitas-br/command-lock-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. ffreitas-br/command-lock-bundle

ActiveSymfony-bundle[CLI &amp; Console](/categories/cli)

ffreitas-br/command-lock-bundle
===============================

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

v1.2.0(11y ago)52.5k3MITPHPPHP &gt;=5.4.0

Since Mar 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ffreitas-br/command-lock-bundle)[ Packagist](https://packagist.org/packages/ffreitas-br/command-lock-bundle)[ Docs](https://github.com/ffreitas-br/command-lock-bundle)[ RSS](/packages/ffreitas-br-command-lock-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (8)Used By (0)

command-lock-bundle
===================

[](#command-lock-bundle)

[![Build Status](https://camo.githubusercontent.com/59911bbf25388d52465d351a6417c3350f56747fa6a4e568cf1748963bca1cf6/68747470733a2f2f7472617669732d63692e6f72672f66667265697461732d62722f636f6d6d616e642d6c6f636b2d62756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/ffreitas-br/command-lock-bundle)[![Dependency Status](https://camo.githubusercontent.com/8a689812162974e9553d07696efdf7a4cc7242d1f029baa03508cc7d76e924aa/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533376538313131313463313538333362333030303030322f62616467652e737667)](https://www.versioneye.com/user/projects/537e811114c15833b3000002)

This `command-lock-bundle` when installed prevents two or more of same command runs simultaneously.

---

Installation
------------

[](#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

[](#composerjson)

```
// ...
"require": {
    "ffreitas-br/command-lock-bundle": "dev-master",
},
// ...
```

After this run `composer update` or `composer intall` to refresh your dependencies.

2. Register the bundle in your Kernel.

### app/AppKernel.php

[](#appappkernelphp)

```
