for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of tenside/core-bundle.
*
* (c) Christian Schiffler <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* This project is provided in good faith and hope to be usable by anyone.
* @package tenside/core-bundle
* @author Christian Schiffler <[email protected]>
* @copyright 2015 Christian Schiffler <[email protected]>
* @license https://github.com/tenside/core-bundle/blob/master/LICENSE MIT
* @link https://github.com/tenside/core-bundle
* @filesource
*/
namespace Tenside\CoreBundle\DependencyInjection\Factory;
use Symfony\Component\Filesystem\LockHandler;
use Tenside\Core\Util\HomePathDeterminator;
* This class creates a lock instance to be used when trying to run a task.
* @internal
class TaskRunLockHandlerFactory
{
* Create an instance.
* @param HomePathDeterminator $home The home determinator.
* @return LockHandler
public static function create(HomePathDeterminator $home)
return new LockHandler('task-run', $home->tensideDataDir());
}