Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
[ClassLoader] tweaked public @api
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 14, 2011
1 parent 8fc2dac commit f289917
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions ApcUniversalClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion DebugUniversalClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down
6 changes: 0 additions & 6 deletions MapFileClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -26,8 +24,6 @@ class MapFileClassLoader
* Constructor.
*
* @param string $file Path to class mapping file
*
* @api
*/
public function __construct($file)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit f289917

Please sign in to comment.