[ClassLoader] replaced MapFileClassLoader by MapClassLoader

This commit is contained in:
Fabien Potencier 2011-07-22 14:43:48 +02:00
parent 5d9bd6da4f
commit cc07af2449

View File

@ -16,18 +16,18 @@ namespace Symfony\Component\ClassLoader;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class MapFileClassLoader
class MapClassLoader
{
private $map = array();
/**
* Constructor.
*
* @param string $file Path to class mapping file
* @param array $map A map where keys are classes and values the absolute file path
*/
public function __construct($file)
public function __construct(array $map)
{
$this->map = require $file;
$this->map = $map;
}
/**