Skip to content

Commit d68039e

Browse files
committed
Fixed stupid passing of Memcache instance to MemcacheCache
1 parent 5c1d85f commit d68039e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the Kdyby (http://www.kdyby.org)
5+
*
6+
* Copyright (c) 2008 Filip Procházka (filip@prochazka.su)
7+
*
8+
* For the full copyright and license information, please view the file license.txt that was distributed with this source code.
9+
*/
10+
11+
namespace Kdyby\DoctrineCache;
12+
13+
use Doctrine;
14+
use Kdyby;
15+
use Memcache;
16+
use Nette;
17+
18+
19+
20+
/**
21+
* @author Filip Procházka <filip@prochazka.su>
22+
*/
23+
class MemcacheCache extends Doctrine\Common\Cache\MemcacheCache
24+
{
25+
26+
public function __construct(Memcache $memcache = NULL)
27+
{
28+
$this->setMemcache($memcache);
29+
}
30+
31+
}

0 commit comments

Comments
 (0)