Skip to content

Commit cc07af2

Browse files
committed
[ClassLoader] replaced MapFileClassLoader by MapClassLoader
1 parent 5d9bd6d commit cc07af2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/ClassLoader/MapFileClassLoader.php renamed to src/Symfony/Component/ClassLoader/MapClassLoader.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
*
1717
* @author Fabien Potencier <[email protected]>
1818
*/
19-
class MapFileClassLoader
19+
class MapClassLoader
2020
{
2121
private $map = array();
2222

2323
/**
2424
* Constructor.
2525
*
26-
* @param string $file Path to class mapping file
26+
* @param array $map A map where keys are classes and values the absolute file path
2727
*/
28-
public function __construct($file)
28+
public function __construct(array $map)
2929
{
30-
$this->map = require $file;
30+
$this->map = $map;
3131
}
3232

3333
/**

0 commit comments

Comments
 (0)