Skip to content

Commit

Permalink
Fixed stupid passing of Memcache instance to MemcacheCache
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Oct 27, 2013
1 parent 90393a0 commit daa7040
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/Kdyby/DoctrineCache/MemcacheCache.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

/**
* This file is part of the Kdyby (http://www.kdyby.org)
*
* Copyright (c) 2008 Filip Procházka (filip@prochazka.su)
*
* For the full copyright and license information, please view the file license.txt that was distributed with this source code.
*/

namespace Kdyby\DoctrineCache;

use Doctrine;
use Kdyby;
use Memcache;
use Nette;



/**
* @author Filip Procházka <filip@prochazka.su>
*/
class MemcacheCache extends Doctrine\Common\Cache\MemcacheCache
{

public function __construct(Memcache $memcache = NULL)
{
$this->setMemcache($memcache);
}

}

0 comments on commit daa7040

Please sign in to comment.