Skip to content

Commit

Permalink
Merge pull request #108 from alquerci/rm-deprecated-exception
Browse files Browse the repository at this point in the history
Removed `ConfigCache::__toString()` method deprecation
  • Loading branch information
helios-ag committed Apr 11, 2015
2 parents ee82d4e + 5b25954 commit 90c260a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Decoda/Hook/EmoticonHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ public function getMatcher()
}

$class = $this->options['matcher_cache_class'];
$cache = new ConfigCache($this->options['cache_dir'].'/'.$class.'.php', $this->options['debug']);
$cacheFile = $this->options['cache_dir'].'/'.$class.'.php';
$cache = new ConfigCache($cacheFile, $this->options['debug']);
if (!$cache->isFresh($class)) {
$dumper = new $this->options['matcher_dumper_class']($this->getEmoticonCollection());

Expand All @@ -221,7 +222,7 @@ public function getMatcher()
$cache->write($dumper->dump($options), $this->getEmoticonCollection()->getResources());
}

require_once $cache;
require_once $cacheFile;

return $this->matcher = new $class();

Expand Down

0 comments on commit 90c260a

Please sign in to comment.