[ClassLoader] replaced MapFileClassLoader by MapClassLoader
This commit is contained in:
parent
5d9bd6da4f
commit
cc07af2449
@ -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;
|
||||
}
|
||||
|
||||
/**
|
Reference in New Issue
Block a user