/** * @return string * @throws \RuntimeException */ public function getContent() { $this->io->writeError('<info>Writing TYPO3_ACTIVE_FRAMEWORK_EXTENSIONS environment variable</info>', true, IOInterface::VERBOSE); $configuredActiveTypo3Extensions = $this->config->get('active-typo3-extensions'); if (!is_array($configuredActiveTypo3Extensions)) { $this->io->writeError(sprintf('<error>Extra section "active-typo3-extensions" must be array, "%s" given!</error>', gettype($configuredActiveTypo3Extensions))); $configuredActiveTypo3Extensions = array(); } if (count($configuredActiveTypo3Extensions) > 0) { $this->io->writeError('<warning>Extra section "active-typo3-extensions" has been deprecated!</warning>'); $this->io->writeError('<warning>Please just add typo3/cms framework packages to the require section in your composer.json of any package.</warning>'); } $activeTypo3Extensions = array_unique(array_merge($configuredActiveTypo3Extensions, $this->getRequiredCoreExtensionKeysFromPackageRequires())); asort($activeTypo3Extensions); $this->io->writeError('<info>The following extensions are marked as active:</info> ' . implode(', ', $activeTypo3Extensions), true, IOInterface::VERBOSE); return var_export(implode(',', $activeTypo3Extensions), true); }
/** * PluginImplementation constructor. * * @param Event $event * @param IncludeFile $includeFile * @param ScriptDispatcher $scriptDispatcher */ public function __construct(Event $event, ScriptDispatcher $scriptDispatcher = null, IncludeFile $includeFile = null) { $this->event = $event; $this->scriptDispatcher = $scriptDispatcher ?: new ScriptDispatcher($event); $this->includeFile = $includeFile ?: new IncludeFile($event->getIO(), array(new BaseDirToken($event->getIO(), Typo3PluginConfig::load($event->getComposer())), new WebDirToken($event->getIO(), Typo3PluginConfig::load($event->getComposer())), new ActiveTypo3ExtensionsToken($event->getIO(), $event->getComposer(), Config::load($event->getIO(), $event->getComposer()->getConfig()))), new Filesystem()); }