Skip to content

Commit

Permalink
Dropped the use of Serializer\Serializer from CacheableCursor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizaco committed Aug 17, 2016
1 parent 679acc3 commit 3c9ce9d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Mongolid/Cursor/CacheableCursor.php
Expand Up @@ -3,7 +3,6 @@

use ArrayIterator;
use Mongolid\Container\Ioc;
use Mongolid\Serializer\Serializer;
use Mongolid\Util\CacheComponentInterface;
use Traversable;

Expand Down Expand Up @@ -101,13 +100,11 @@ protected function getCursor(): Traversable
*/
protected function generateCacheKey(): string
{
$serializer = Ioc::make(Serializer::class);

return sprintf(
'%s:%s:%s',
$this->command,
$this->collection->getNamespace(),
md5($serializer->serialize($this->params))
md5(serialize($this->params))
);
}

Expand Down

0 comments on commit 3c9ce9d

Please sign in to comment.