comparison vendor/symfony/class-loader/MapClassLoader.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
9 * file that was distributed with this source code. 9 * file that was distributed with this source code.
10 */ 10 */
11 11
12 namespace Symfony\Component\ClassLoader; 12 namespace Symfony\Component\ClassLoader;
13 13
14 @trigger_error('The '.__NAMESPACE__.'\MapClassLoader class is deprecated since Symfony 3.3 and will be removed in 4.0. Use Composer instead.', E_USER_DEPRECATED);
15
14 /** 16 /**
15 * A class loader that uses a mapping file to look up paths. 17 * A class loader that uses a mapping file to look up paths.
16 * 18 *
17 * @author Fabien Potencier <fabien@symfony.com> 19 * @author Fabien Potencier <fabien@symfony.com>
20 *
21 * @deprecated since version 3.3, to be removed in 4.0.
18 */ 22 */
19 class MapClassLoader 23 class MapClassLoader
20 { 24 {
21 private $map = array(); 25 private $map = array();
22 26
23 /** 27 /**
24 * Constructor.
25 *
26 * @param array $map A map where keys are classes and values the absolute file path 28 * @param array $map A map where keys are classes and values the absolute file path
27 */ 29 */
28 public function __construct(array $map) 30 public function __construct(array $map)
29 { 31 {
30 $this->map = $map; 32 $this->map = $map;