Procházet zdrojové kódy

[ClassLoader] tweaked public @api

Fabien Potencier před 14 roky
rodič
revize
59301a93d7

+ 0 - 2
src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php

@@ -84,8 +84,6 @@ class ApcUniversalClassLoader extends UniversalClassLoader
      * 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)
     {

+ 1 - 1
src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php

@@ -55,7 +55,7 @@ class DebugUniversalClassLoader extends UniversalClassLoader
             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));
             }
         }
     }

+ 0 - 6
src/Symfony/Component/ClassLoader/MapFileClassLoader.php

@@ -15,8 +15,6 @@ namespace Symfony\Component\ClassLoader;
  * 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 @@ class MapFileClassLoader
      * Registers this instance as an autoloader.
      *
      * @param Boolean $prepend Whether to prepend the autoloader or not
-     *
-     * @api
      */
     public function register($prepend = false)
     {