Commit 04fd4dc4 by Scott

Fix incorrect class instantiation in namespaces

parent a3229e87
......@@ -235,8 +235,8 @@ class FileCacheDriver implements CacheDriver
$totalFiles = 0;
$totalBytes = 0;
$dirIter = new RecursiveDirectoryIterator($this->cacheDir);
foreach (new RecursiveIteratorIterator($dirIter) as $file) {
$dirIter = new \RecursiveDirectoryIterator($this->cacheDir);
foreach (new \RecursiveIteratorIterator($dirIter) as $file) {
if (strpos($file->getFilename(), '.') === 0) {
// TODO: use FilesystemIterator::SKIP_DOTS once we're on minimum PHP 5.3
continue;
......
......@@ -49,7 +49,7 @@ class MemcachedDriver implements CacheDriver
}
if (extension_loaded('memcached')) {
$this->memcached = new Memcached;
$this->memcached = new \Memcached;
$this->memcached->addServer(self::HOST, self::PORT);
if ($this->memcached->set($this->keyPrefix . 'test', 'TEST')) {
$this->enabled = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment