Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[ClassLoader] tweaked public @api

  • Loading branch information...
commit f289917e07a7bcecb4d27c782fb9b4380136baa9 1 parent 8fc2dac
Fabien Potencier fabpot authored
2  ApcUniversalClassLoader.php
View
@@ -84,8 +84,6 @@ public function __construct($prefix)
* Finds a file by class name while caching lookups to APC.
*
* @param string $class A class name to resolve to file
- *
- * @api
*/
public function findFile($class)
{
2  DebugUniversalClassLoader.php
View
@@ -55,7 +55,7 @@ public function loadClass($class)
require $file;
if (!class_exists($class, false) && !interface_exists($class, false)) {
- throw new \Exception(sprintf('The autoloader expected class "%s" to be defined in file "%s". You probably have a typo in the namespace or the class name.', $class, $file));
+ throw new \RuntimeException(sprintf('The autoloader expected class "%s" to be defined in file "%s". You probably have a typo in the namespace or the class name.', $class, $file));
}
}
}
6 MapFileClassLoader.php
View
@@ -15,8 +15,6 @@
* A class loader that uses a mapping file to look up paths.
*
* @author Fabien Potencier <fabien@symfony.com>
- *
- * @api
*/
class MapFileClassLoader
{
@@ -26,8 +24,6 @@ class MapFileClassLoader
* Constructor.
*
* @param string $file Path to class mapping file
- *
- * @api
*/
public function __construct($file)
{
@@ -38,8 +34,6 @@ public function __construct($file)
* Registers this instance as an autoloader.
*
* @param Boolean $prepend Whether to prepend the autoloader or not
- *
- * @api
*/
public function register($prepend = false)
{
Please sign in to comment.
Something went wrong with that request. Please try again.