From 615bd03c12560dd0cf76238ad812808cdbafb9ab Mon Sep 17 00:00:00 2001 From: Dan Untenzu Date: Tue, 16 Mar 2021 19:03:46 +0100 Subject: [PATCH] [BUGFIX] Respect actual path in namespace Respect the actual path in the namespace of the T3xDownloader. Otherwise ELTS installations with class resolvers break with a fatal error due to a missing class. Refs #115 --- src/Installer/Downloader/T3xDownloader.php | 2 +- src/Installer/Downloader/T3xDownloader2.php | 2 +- src/Plugin/Util/T3xDownloaderUtility.php | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Installer/Downloader/T3xDownloader.php b/src/Installer/Downloader/T3xDownloader.php index 910e3fa..a6278d3 100644 --- a/src/Installer/Downloader/T3xDownloader.php +++ b/src/Installer/Downloader/T3xDownloader.php @@ -18,7 +18,7 @@ use Composer\Downloader\ArchiveDownloader; use Composer\Downloader\ChangeReportInterface; use Composer\Package\PackageInterface; -use TYPO3\CMS\Composer\Util\T3xDownloaderUtility; +use TYPO3\CMS\Composer\Plugin\Util\T3xDownloaderUtility; /** * TYPO3 CMS Extension Downloader diff --git a/src/Installer/Downloader/T3xDownloader2.php b/src/Installer/Downloader/T3xDownloader2.php index 141a155..00ec1a5 100644 --- a/src/Installer/Downloader/T3xDownloader2.php +++ b/src/Installer/Downloader/T3xDownloader2.php @@ -18,7 +18,7 @@ use Composer\Downloader\ArchiveDownloader; use Composer\Downloader\ChangeReportInterface; use Composer\Package\PackageInterface; -use TYPO3\CMS\Composer\Util\T3xDownloaderUtility; +use TYPO3\CMS\Composer\Plugin\Util\T3xDownloaderUtility; /** * TYPO3 CMS Extension Downloader diff --git a/src/Plugin/Util/T3xDownloaderUtility.php b/src/Plugin/Util/T3xDownloaderUtility.php index ee26b06..25ca773 100644 --- a/src/Plugin/Util/T3xDownloaderUtility.php +++ b/src/Plugin/Util/T3xDownloaderUtility.php @@ -13,10 +13,9 @@ * The TYPO3 project - inspiring people to share! */ -namespace TYPO3\CMS\Composer\Util; +namespace TYPO3\CMS\Composer\Plugin\Util; use Composer\Package\PackageInterface; -use TYPO3\CMS\Composer\Plugin\Util\ExtensionKeyResolver; class T3xDownloaderUtility {