Permalink
Browse files

[DCOM-66][PR-55] Changed obsolete function ClassLoader::fileExistsInI…

…ncludePath() to native PHP implementation stream_resolve_include_path().
  • Loading branch information...
1 parent 82a5a2a commit 4ff6196db1aae591f5dd8835b6a21a34a8e60502 @guilhermeblanco guilhermeblanco committed Aug 28, 2011
Showing with 5 additions and 10 deletions.
  1. +4 −0 UPGRADE_TO_2_2
  2. +1 −10 lib/Doctrine/Common/ClassLoader.php
View
@@ -55,3 +55,7 @@ updating your project from Doctrine Common 2.1 to 2.2:
- Added support to MemcachedCache
- Added support to WincacheCache
+
+## ClassLoader Changes
+
+- ClassLoader::fileExistsInIncludePath() no longer exists. Use the native stream_resolve_include_path() PHP function
@@ -184,7 +184,7 @@ public function canLoadClass($className)
return file_exists($this->includePath . DIRECTORY_SEPARATOR . $file);
}
- return (false !== stream_resolve_include_path($file));//self::fileExistsInIncludePath($file);
+ return (false !== stream_resolve_include_path($file));
}
/**
@@ -259,13 +259,4 @@ public static function getClassLoader($className)
return null;
}
-
- /**
- * @param string $file The file relative path.
- * @return boolean Whether file exists in include_path.
- */
- /*public static function fileExistsInIncludePath($file)
- {
- return (false !== stream_resolve_include_path($file));
- }*/
}

0 comments on commit 4ff6196

Please sign in to comment.