torqnorth / pimcore-command-locker-bundle
There is no license information available for the latest version (V2.0.0) of this package.
Package info
github.com/Torq-North/pimcore-command-locker-bundle
Type:pimcore-bundle
pkg:composer/torqnorth/pimcore-command-locker-bundle
V2.0.0
2023-10-04 12:44 UTC
Requires
- pimcore/pimcore: ^11.0
- symfony/lock: ^6.2
This package is not auto-updated.
Last update: 2026-03-09 21:09:09 UTC
README
This command will create a lock prior to running a command, so that the command cannot be started again by another container / process.
Installing the package via composer
This bundle is easily installed via composer: composer require torqnorth/pimcore-command-locker-bundle
Steps to setting up the object deleter:
- Make sure you register the
CommandLockerBundlein yourAppKernel.phplocated at\src\pimcore-root\app\AppKernel.php. Registering the bundle is as easy as adding a line in the registerBundlesToCollection function, like so:$collection->addBundle(new \TorqNorth\CommandLockerBundle\CommandLockerBundle); - You will also be required to enable the bundle. Either navigate to
var/config/extensions.phpand add it, or runbin/console pimcore:bundle:enable CommandLockerBundle. - Run the bundle, with the command:
./bin/console torqnorth:command-locker 'YOUR_COMMAND_TO_BE_RUN'.