From 11edea8aeeec766981ec7bdee6306e36f5b09341 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 13 May 2012 11:35:50 +0200 Subject: [PATCH] Add deprecation warning to old .composer files --- src/Composer/Autoload/AutoloadGenerator.php | 14 ++++++++------ src/Composer/Factory.php | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 3d8c7b752..d5cae8428 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -129,15 +129,17 @@ EOF; file_put_contents($vendorPath.'/autoload.php', $this->getAutoloadFile($vendorPathToTargetDirCode, true, true, (Boolean) $includePathFile, $targetDirLoader)); copy(__DIR__.'/ClassLoader.php', $targetDir.'/ClassLoader.php'); - // TODO BC feature, add E_DEPRECATED in autoload.php on April 30th, remove after May 30th + // TODO BC feature, remove after June 15th if ($bcLinks) { $filesystem->ensureDirectoryExists($vendorPath.'/.composer'); - file_put_contents($vendorPath.'/.composer/autoload_namespaces.php', "