Permalink
Browse files

[ClassLoader] removed ClassLoaderInterface

As the autoloader cannot autoload the interface, it makes things more complicated
for a very small benefit.
  • Loading branch information...
1 parent 0091d0e commit 80862ea255511dc576f5fb23d6c2cf64ab057c6e @fabpot fabpot committed Mar 30, 2011
Showing with 2 additions and 49 deletions.
  1. +0 −1 ApcUniversalClassLoader.php
  2. +0 −42 ClassLoaderInterface.php
  3. +1 −3 MapFileClassLoader.php
  4. +1 −3 UniversalClassLoader.php
View
1 ApcUniversalClassLoader.php
@@ -11,7 +11,6 @@
namespace Symfony\Component\ClassLoader;
-require_once __DIR__.'/ClassLoaderInterface.php';
require_once __DIR__.'/UniversalClassLoader.php';
/**
View
42 ClassLoaderInterface.php
@@ -1,42 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\ClassLoader;
-
-/**
- * ClassLoaderInterface.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- *
- * @api
- */
-interface ClassLoaderInterface
-{
- /**
- * Loads the given class or interface.
- *
- * @param string $class The name of the class
- *
- * @api
- */
- function loadClass($class);
-
- /**
- * Finds the path to the file where the class is defined.
- *
- * @param string $class The name of the class
- *
- * @return string|null The path, if found
- *
- * @api
- */
- function findFile($class);
-}
View
4 MapFileClassLoader.php
@@ -11,16 +11,14 @@
namespace Symfony\Component\ClassLoader;
-require_once __DIR__.'/ClassLoaderInterface.php';
-
/**
* A class loader that uses a mapping file to look up paths.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @api
*/
-class MapFileClassLoader implements ClassLoaderInterface
+class MapFileClassLoader
{
private $map = array();
View
4 UniversalClassLoader.php
@@ -11,8 +11,6 @@
namespace Symfony\Component\ClassLoader;
-require_once __DIR__.'/ClassLoaderInterface.php';
-
/**
* UniversalClassLoader implements a "universal" autoloader for PHP 5.3.
*
@@ -56,7 +54,7 @@
*
* @api
*/
-class UniversalClassLoader implements ClassLoaderInterface
+class UniversalClassLoader
{
private $namespaces = array();
private $prefixes = array();

0 comments on commit 80862ea

Please sign in to comment.