Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 5dd7a92

Browse files
committed
Fixed bug with memcache
1 parent ca1c6c2 commit 5dd7a92

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎config/install/phpfastcache.settings.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ phpfastcache_drivers_config:
2828
memcache:
2929
host: 127.0.0.1
3030
port: 11211
31-
sasl_username: ''
31+
sasl_user: ''
3232
sasl_password: ''
3333
memcached:
3434
host: 127.0.0.1
3535
port: 11211
36-
sasl_username: ''
36+
sasl_user: ''
3737
sasl_password: ''
3838
mongodb:
3939
host: 127.0.0.1

‎src/Form/Fields/PhpfastcacheAdminMemcacheFields.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public static function getFields(string $driverName, Config $config): array
3535
'#required' => true,
3636
];
3737

38-
$fields[ 'driver_container_settings__' . $driverName ][ "phpfastcache_drivers_config_{$driverName}_sasl_username" ] = [
38+
$fields[ 'driver_container_settings__' . $driverName ][ "phpfastcache_drivers_config_{$driverName}_sasl_user" ] = [
3939
'#type' => 'password',
40-
'#title' => t('Memcache SASL username'),
41-
'#default_value' => $config->get("phpfastcache_drivers_config.{$driverName}.username"),
40+
'#title' => t('Memcache SASL user'),
41+
'#default_value' => $config->get("phpfastcache_drivers_config.{$driverName}.user"),
4242
'#description' => t('The Memcache SASL username, if needed'),
4343
'#required' => false,
4444
];
@@ -60,7 +60,7 @@ public static function setConfig(string $driverName, FormStateInterface $form_st
6060
[
6161
'host' => (string)$form_state->getValue("phpfastcache_drivers_config_{$driverName}_host"),
6262
'port' => (int) $form_state->getValue("phpfastcache_drivers_config_{$driverName}_port"),
63-
'sasl_username' => (string)$form_state->getValue("phpfastcache_drivers_config_{$driverName}_sasl_username"),
63+
'sasl_user' => (string)$form_state->getValue("phpfastcache_drivers_config_{$driverName}_sasl_user"),
6464
'sasl_password' => (string)$form_state->getValue("phpfastcache_drivers_config_{$driverName}_sasl_password"),
6565
]
6666
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /