Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [DOCS] Update README.md * Raise compatibility to TYPO3 v12 * Use executeQuery() or executeStatement() instead of execute() * Use use-statements in Configuration/ * Add .editorconfig * Code cleanup * Remove dynamicReturnTypeMeta.json as the plugin is outdated and neither usable nor necessary. * Remove BE-mode check from ext_localconf.php. This is not needed and breaks in v12 * "use" statements in ext_localconf.php * Add TODO for EventDispatcher for EXT:solrfal for v12 * Update Aspects * parameter types for properties and method arguments * copyright * declare(strict_types=1) * order declare/copyright/namespaces * remove PHPDoc if only type hints or method name * Update ExtensionConfiguration * Declare correct type for Context\UserAspect::$user * Update ItemProvider * documentation of constructor arguments for v11 * parameter type for properties * PHPDoc * Update BePublicUrlController * BePublicUrlController::$resourceFactory only provided by Dependency Injection * BePublicUrlController::$processedFileRepository provided by Dependency Injection * Make BePublicUrlController::dumpFile() more resilient * catch FileDoesNotExistException for 'f'-file and respond with 404 * respond with 404 for deleted or missing 'f'-file like changed for 'p' in #102 * catch \RuntimeException for 'p'-file and respond with 404. This prevents null pointer for $orgFile->getStorage() * Update FileTreeController * FileTreeController::$resourceFactory only provided by Dependency Injection * Error message instead of empty response for missing storage * Update FileTreeStateController * add @throws declarations * Constructor arguments of FileTreeStateController only provided by Dependency Injection * Remove unused class Domain/Repository/ProcessedFileRepository * Update FolderChangedEventListener * added registration information and added @noinspection PHPUnused * Add FolderChangedEventListener::updateFolderPermissions() * Extracted duplicate code to new method * Update GeneratePublicUrlForResourceEventListener * added registration information and @noinspection PHPUnused * Update ModifyIconForResourcePropertiesEventListener * change list() to short array syntax * Update Events * added @noinspection PHPUnused * Update DownloadStatistics * added @throws * Update AbstractBeButtons and DocHeaderButtonsHook * parameter types for properties and methods * Update CmsLayout * CmsLayout::$resourceFactory only provided by Dependency Injection * Update FileDumpHook * catch UnknownLinkHandlerException and add error message * Update KeSearchFilesHook * Update ProcessDatamapHook * parameter types for methods * Update EidFrontendAuthentication * Remove DocHeaderButtonsHook::addFolderPermissionsButton(). Used in TYPO3 <= v7 and usage removed in a6f079b Updated extension to fully support TYPO3 8.7 and removed old below TYPO3 7.6 support. * Update CheckPermissions * switch from Folder to FolderInterface as not necessary * replace PHP8 str_contains() with strpos() * Update LeafStateService * LeafStateService::$resourceFactory only provided by Dependency Injection * Update UserFileMountService * Update Utility * Update ViewHelpers * add PHPDoc type hints * Rename TypoScript files from *.txt to *.typoscript * Fix typos in locallang_be.xlf * Formatting of HTML files, fluid namespace declaration * Update CollapsibleFolderTree.js * Fix typo * Fix formatting * Reuse jQuery selector for folders * Update SVG files * Update .editorconfig and format accordingly * Remove ext_icon.png. Available in Resources/Public/Icons/Extension.png https://docs.typo3.org/c/typo3/cms-core/11.5/en-us/Changelog/8.3/Feature-77349-AdditionalLocationsForExtensionIcons.html?highlight=ext_icon * Move icon registration to ext_localconf.php. Should always have been there: https://docs.typo3.org/c/typo3/cms-core/12.4/en-us/Changelog/7.5/Feature-68741-IntroduceNewIconFactoryAsBaseForReplaceTheIconSkinningAPI.html * Update ext_tables.sql. Database management fields are generated automatically: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/9.3/Feature-85160-AutoCreateManagementDBFieldsFromTCACtrl.html?highlight=85160 * [BUGFIX] Catch FolderDoesNotExistException. $file->getParentFolder() may throw a FolderDoesNotExistException which currently is not part of PHPDoc in TYPO3 core. This may lead to this exception being thrown in the backend in case of an offline protected storage instead of displaying the file tree. This change makes sure the file tree is shown by catching the exception. * Context menu using ES6 module in TYPO3 v12. Adding a context menu using RequireJS does only work in TYPO3 v11 but no longer in v12, even if the documentation hints it should: https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/ApiOverview/Backend/JavaScript/ES6/Index.html#migration-from-requirejs * Remove ['TYPO3_CONF_VARS']['EXTCONF'] usage from FileDumpHook. Using this is removed since TYPO3 v10 * Migrate Hooks\FileDumpHook to EventListener\ModifyFileDumpEventListener https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Events/Events/Core/Resource/ModifyFileDumpEvent.html * Remove comparison to EXT:naw_securedl from documentation. EXT:naw_securedl is outdated and not relevant anymore * IconFactoryAspect uses constructor and SingletonInterface * Use UserFileMountService of core. Instead of using an outdated copy of the UserFileMountService from core simply override the config and use the core service. The UserFileMountService is deprecated in v12 and will be removed in v13, but currently selection of a storage root folder is not possible from the element browser, therefore migration to type=folder is not an option currently. https://forge.typo3.org/issues/100789 * Remove unnecessary option to select storage. As displayCond already makes sure a storage is selected, the dropdown item in the folder selection is not needed. * Add typoscript option to disable javascript include * Rename event variables and remove type hints * Remove unused method CheckPermissions::getBackendUser() * Pass request to UserAuthentication. This is required for TYPO3 v12 * Avoid TCA migrations in TYPO3 v12 * Replace strpos() with str_contains(). As TYPO3 v11 uses a polyfill this is possible also with PHP 7.4 * Use FileInterface for ModifyFileDumpEventListener::dumpFileContents(). The object to be dumped may also be a ProcessedFile.
- Loading branch information