Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Update LswMemcacheExtension.php
Browse files Browse the repository at this point in the history
Fix for issue, renaming MemcachedSessionHandler.php expiretime option
  • Loading branch information
Maurits van der Schee committed Apr 5, 2013
1 parent ad989ed commit dae0578
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DependencyInjection/LswMemcacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ private function enableSessionSupport($config, ContainerBuilder $container)
$sessionOptions = $container->getParameter('session.storage.options');
$options = array();
if (isset($config['session']['ttl'])) {
$options['ttl'] = $config['session']['ttl'];
$options['expiretime'] = $config['session']['ttl'];
} elseif (isset($sessionOptions['cookie_lifetime'])) {
$options['ttl'] = $sessionOptions['cookie_lifetime'];
$options['expiretime'] = $sessionOptions['cookie_lifetime'];
}
if (isset($config['session']['prefix'])) {
$options['prefix'] = $config['session']['prefix'];
Expand Down Expand Up @@ -171,4 +171,4 @@ private function newMemcachedClient($name, array $config, ContainerBuilder $cont
}
}

}
}

0 comments on commit dae0578

Please sign in to comment.