diff --git a/src/Plugin.php b/src/Plugin.php index b4cf516..12b5807 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -128,6 +128,12 @@ public function activate(Composer $composer, IOInterface $io) $config = $composer->getConfig(); $cache = new Cache($io, $composer->getConfig()->get('cache-dir') . '/translations'); + if (!$cache->isEnabled()) { + $this->io->error("Composer Cache folder is not enabled."); + + return false; + } + $this->filesystem = new Filesystem(); /** @var PluginConfiguration pluginConfig */