Created
September 13, 2018 10:48
-
-
Save cosmos-sajal/d55e7508fa3e377215c8d874ae50b4b7 to your computer and use it in GitHub Desktop.
Invoke LockHandlerUtil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->lockHandlerUtil = new LockHandlerUtil( | |
$this->getName(), | |
$this->getContainer()->get('kernel')->getRootDir() | |
); | |
// $this->getName() will return the current file name | |
// of the Command (Cron) in Symfony framework. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment