[ 'title' => 'Compatibility Mode for TYPO3 v7', 'description' => 'Provides an additional backwards-compatibility layer with legacy functionality for sites that haven\'t fully migrated to TYPO3 v8 yet.', 'versionString' => '8.7.1', 'composerName' => 'friendsoftypo3/compatibility7', ], ]; /** * @var \TYPO3\CMS\Install\Updates\ExtensionModel */ protected $extension; /** * @var \TYPO3\CMS\Install\Updates\Confirmation */ protected $confirmation; public function __construct() { $this->extension = new ExtensionModel( 'compatibility7', 'Compatibility Mode for TYPO3 v7', '8.7.1', 'friendsoftypo3/compatibility7', 'Provides an additional backwards-compatibility layer with legacy functionality for sites that haven\'t fully migrated to TYPO3 v8 yet.' ); $this->confirmation = new Confirmation( 'Are you sure?', 'The compatibility extensions come with a performance penalty, use only if needed. ' . $this->extension->getDescription(), false ); } /** * Return a confirmation message instance * * @return \TYPO3\CMS\Install\Updates\Confirmation */ public function getConfirmation(): Confirmation { return $this->confirmation; } /** * Return the identifier for this wizard * This should be the same string as used in the ext_localconf class registration * * @return string */ public function getIdentifier(): string { return 'compatibility7Extension'; } /** * Return the speaking name of this wizard * * @return string */ public function getTitle(): string { return 'Install compatibility extension for TYPO3 7 compatibility'; } /** * Return the description for this wizard * * @return string */ public function getDescription(): string { return 'The extension "compatibility7" (Compatibility Mode for TYPO3 v7) was extracted into ' . 'the TYPO3 Extension Repository. This update downloads the TYPO3 Extension from the TER.'; } /** * Is an update necessary? * Is used to determine whether a wizard needs to be run. * * @return bool */ public function updateNecessary(): bool { return !ExtensionManagementUtility::isLoaded('compatibility7'); } /** * Returns an array of class names of Prerequisite classes * This way a wizard can define dependencies like "database up-to-date" or * "reference index updated" * * @return string[] */ public function getPrerequisites(): array { return []; } }