/** * Returns project key based on his root dir */ public static function getHash() { if (null === self::$hash) { self::$hash = substr(md5(sfConfig::get('sf_root_dir')), -8); } return self::$hash; }