PHPackages                             matthimatiker/command-locking-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. matthimatiker/command-locking-bundle

ActiveLibrary[CLI &amp; Console](/categories/cli)

matthimatiker/command-locking-bundle
====================================

Adds an optional locking feature to all console commands that can be used to prevent parallel execution.

0.2.0(9y ago)216MITPHPPHP ^5.5.9 | ^7.0.0

Since May 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Matthimatiker/CommandLockingBundle)[ Packagist](https://packagist.org/packages/matthimatiker/command-locking-bundle)[ RSS](/packages/matthimatiker-command-locking-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

CommandLockingBundle
====================

[](#commandlockingbundle)

[![Build Status](https://camo.githubusercontent.com/43837a4f7df88aff9476000593b1a6208dfaa2bb41fc31fb22352e21513fa963/68747470733a2f2f7472617669732d63692e6f72672f4d61747468696d6174696b65722f436f6d6d616e644c6f636b696e6742756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Matthimatiker/CommandLockingBundle)[![Coverage Status](https://camo.githubusercontent.com/0b4c316af040413bb131ea9a79eb01e648d9b2b5e795eea52049e8905a597b21/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4d61747468696d6174696b65722f436f6d6d616e644c6f636b696e6742756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Matthimatiker/CommandLockingBundle?branch=master)

Sometimes you want to ensure that a Symfony console command does not run in parallel. This bundle adds an optional locking feature to all console commands that can be used to prevent parallel execution.

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

[](#installation)

Install the bundle via [Composer](https://getcomposer.org):

```
composer require matthimatiker/command-locking-bundle

```

Then register the bundle in your `AppKernel`:

```
