コード例 #1
0
ファイル: Redis.php プロジェクト: loopsframework/extra
 public static function getDefaultConfig(Loops $loops = NULL)
 {
     $config = parent::getDefaultConfig($loops);
     if (getenv('REDIS_PORT') && preg_match('/^(.*?):\\/\\/(.*?):(.*?)$/', getenv('REDIS_PORT'), $match)) {
         $config->host = $match[2];
         $config->port = $match[3];
     }
     return $config;
 }
コード例 #2
0
ファイル: PluginService.php プロジェクト: loopsframework/base
 protected static function getDefaultConfig(Loops $loops = NULL)
 {
     $config = parent::getDefaultConfig($loops);
     $config->plugin = static::getDefaultPlugin($loops);
     return $config;
 }