Esempio n. 1
0
 /** ProcessManager */
 public function buildUnixProcessLockFile()
 {
     global $argv;
     $lockfile_name = str_replace(array('.', '\\', '/', ':'), '_', implode('_', $argv));
     $options = $this->container->get('config')->processmanager;
     $manager = Teamlab_Batch_ProcessManager_UnixProcessLockfile::getInstance($options);
     $manager->setLockfileName($lockfile_name);
     return $manager;
 }