/**
  * @static
  * @return Pheanstalk object
  */
 public static function getInstance()
 {
     if (self::$conn == null) {
         self::$conn = new Pheanstalk(sprintf('%s:%s', sfConfig::get('app_pheanstalk_host', '127.0.0.1'), sfConfig::get('app_pheanstalk_port', 11300)));
     }
     return self::$conn;
 }
 public static function getInstance()
 {
     $host = sfConfig::get('app_pheanstalk_host', '127.0.0.1');
     $port = sfConfig::get('app_pheanstalk_port', 11300);
     $path = sfConfig::get('app_pheanstalk_path', realpath(dirname(__FILE__) . '/../vendor')) . '/pheanstalk_init.php';
     require_once $path;
     if (self::$conn == null) {
         self::$conn = new Pheanstalk($host . ':' . $port);
     }
     return self::$conn;
 }