2 namespace TYPO3\CMS\Composer\Installer;
27 use Composer\Composer;
28 use Composer\EventDispatcher\EventSubscriberInterface;
29 use Composer\IO\IOInterface;
30 use Composer\Plugin\PluginInterface;
32 use Composer\Script\ScriptEvents;
41 class Plugin implements PluginInterface, EventSubscriberInterface {
48 ScriptEvents::POST_AUTOLOAD_DUMP =>
'postAutoload'
55 public function activate(Composer $composer, IOInterface $io) {
58 ->getInstallationManager()
67 ->getInstallationManager()
73 if ($composer->getConfig()->get(
'cache-files-ttl') > 0) {
74 $cache =
new Cache($io, $composer->getConfig()->get(
'cache-files-dir'),
'a-z0-9_./');
78 ->getDownloadManager()
81 new Downloader\T3xDownloader($io, $composer->getConfig(), null, $cache)
89 $autoloadConnector = new \TYPO3\CMS\Composer\Plugin\Core\AutoloadConnector();
90 $autoloadConnector->linkAutoloader($event);