Skip to content

Commit e39ebaa

Browse files
committed
Bugfixes
1 parent 6af183a commit e39ebaa

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/Bridge/SessionHandlerBridge.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Cache\CacheBundle\Bridge;
1313

14-
use Cache\Taggable\TaggablePoolInterface;
1514
use Psr\Cache\CacheItemPoolInterface;
1615

1716
/**
@@ -102,10 +101,6 @@ public function write($sessionId, $data)
102101
*/
103102
public function destroy($sessionId)
104103
{
105-
if ($this->cache instanceof TaggablePoolInterface) {
106-
return $this->cache->deleteItem($this->prefix.$sessionId);
107-
}
108-
109104
return $this->cache->deleteItem($this->prefix.$sessionId);
110105
}
111106

@@ -125,10 +120,6 @@ public function gc($lifetime)
125120
*/
126121
private function getCacheItem($sessionId)
127122
{
128-
if ($this->cache instanceof TaggablePoolInterface) {
129-
return $this->cache->getItem($this->prefix.$sessionId);
130-
}
131-
132123
return $this->cache->getItem($this->prefix.$sessionId);
133124
}
134125
}

src/DependencyInjection/Compiler/SessionSupportCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ public function process(ContainerBuilder $container)
3838
throw new \Exception('Session cache support cannot be enabled if there is no session.storage service');
3939
}
4040

41-
$container->setAlias('session.handler', 'cache.servcice.session');
41+
$container->setAlias('session.handler', 'cache.service.session');
4242
}
4343
}

0 commit comments

Comments
 (0)