From 1fe690f8100270c482fc2fbd84b774455b5cf9fc Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 21 Nov 2015 18:33:17 +0000 Subject: [PATCH] Autoload generator cleanups --- src/Composer/Autoload/AutoloadGenerator.php | 26 ++++++++----------- ...emoved_include_paths_and_autolad_files.php | 5 ---- .../Fixtures/autoload_real_include_path.php | 13 ---------- 3 files changed, 11 insertions(+), 33 deletions(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 026f22843..0e21f4bd1 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -237,11 +237,6 @@ EOF; if (!is_dir($dir)) { continue; } -// $whitelist = sprintf( -// '{%s/%s.+$}', -// preg_quote($dir), -// ($psrType === 'psr-0' && strpos($namespace, '_') === false) ? preg_quote(strtr($namespace, '\\', '/')) : '' -// ); $namespaceFilter = $namespace === '' ? null : $namespace; $classMap = $this->addClassMapCode($filesystem, $basePath, $vendorPath, $dir, $blacklist, $namespaceFilter, $classMap); @@ -544,13 +539,6 @@ AUTOLOAD; protected function getAutoloadRealFile($useClassMap, $useIncludePath, $targetDirLoader, $useIncludeFiles, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader) { - // TODO the class ComposerAutoloaderInit should be revert to a closure - // when APC has been fixed: - // - https://github.com/composer/composer/issues/959 - // - https://bugs.php.net/bug.php?id=52144 - // - https://bugs.php.net/bug.php?id=61576 - // - https://bugs.php.net/bug.php?id=59298 - $file = <<