Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 80862ea255511dc576f5fb23d6c2cf64ab057c6e 1 parent 0091d0e
Fabien Potencier fabpot authored
1  ApcUniversalClassLoader.php
View
@@ -11,7 +11,6 @@
namespace Symfony\Component\ClassLoader;
-require_once __DIR__.'/ClassLoaderInterface.php';
require_once __DIR__.'/UniversalClassLoader.php';
/**
42 ClassLoaderInterface.php
View
@@ -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);
-}
4 MapFileClassLoader.php
View
@@ -11,8 +11,6 @@
namespace Symfony\Component\ClassLoader;
-require_once __DIR__.'/ClassLoaderInterface.php';
-
/**
* A class loader that uses a mapping file to look up paths.
*
@@ -20,7 +18,7 @@
*
* @api
*/
-class MapFileClassLoader implements ClassLoaderInterface
+class MapFileClassLoader
{
private $map = array();
4 UniversalClassLoader.php
View
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.