From fe5068260ee1f89ae584c36b9c5f1594df86a0f3 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Wed, 31 Aug 2022 23:35:46 -0400 Subject: [PATCH] Renaming setApcu to avoid conflict with 2.1 composer --- src/AutoloadGenerator.php | 2 +- src/Plugin.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoloadGenerator.php b/src/AutoloadGenerator.php index 0884286..e6d8c27 100644 --- a/src/AutoloadGenerator.php +++ b/src/AutoloadGenerator.php @@ -50,7 +50,7 @@ public function setDevMode($devMode = true) * @param string|null $apcuPrefix * @return void */ - public function setApcu(bool $apcu, ?string $apcuPrefix = null) + public function setApcuMode(bool $apcu, ?string $apcuPrefix = null) { parent::setApcu($apcu, $apcuPrefix); diff --git a/src/Plugin.php b/src/Plugin.php index af983b1..90c9c02 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -92,7 +92,7 @@ public function generateAutoloaderFile(Event $event): void $this->io, ); - $this->generator->setApcu( + $this->generator->setApcuMode( $this->composer->getConfig()->get('apcu-autoloader') );