[TASK] Use fully qualified name resolution in PHP 5.5 13/32913/7
authorXavier Perseguers <xavier@typo3.org>
Thu, 13 Nov 2014 12:55:26 +0000 (13:55 +0100)
committerXavier Perseguers <xavier@typo3.org>
Thu, 13 Nov 2014 14:03:22 +0000 (15:03 +0100)
Since PHP 5.5 is a requirement, calls to GeneralUtility::makeInstance()
should use the ::class construct instead of a string argument.

Releases: master
Resolves: #61788
Change-Id: Ia2efc5a4cb7ecea80b8a1c8e5ff7b5d6fa9a07ce
Reviewed-on: http://review.typo3.org/32913
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
490 files changed:
typo3/ajax.php
typo3/alt_clickmenu.php
typo3/alt_db_navframe.php
typo3/alt_doc.php
typo3/alt_doc_nodoc.php
typo3/alt_file_navframe.php
typo3/backend.php
typo3/browser.php
typo3/db_new.php
typo3/dummy.php
typo3/file_edit.php
typo3/file_newfolder.php
typo3/file_rename.php
typo3/file_upload.php
typo3/index.php
typo3/listframe_loader.php
typo3/login_frameset.php
typo3/logout.php
typo3/mod.php
typo3/move_el.php
typo3/show_rechis.php
typo3/sysext/aboutmodules/Classes/Controller/ModulesController.php
typo3/sysext/backend/Classes/Configuration/TsConfigParser.php
typo3/sysext/backend/Classes/ContextMenu/AbstractContextMenuDataProvider.php
typo3/sysext/backend/Classes/ContextMenu/Extdirect/AbstractExtdirectContextMenu.php
typo3/sysext/backend/Classes/ContextMenu/Pagetree/Extdirect/ContextMenuConfiguration.php
typo3/sysext/backend/Classes/Controller/BackendController.php
typo3/sysext/backend/Classes/Controller/BackendLayoutWizardController.php
typo3/sysext/backend/Classes/Controller/ClickMenuController.php
typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
typo3/sysext/backend/Classes/Controller/ContentElement/MoveElementController.php
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Controller/File/CreateFolderController.php
typo3/sysext/backend/Classes/Controller/File/EditFileController.php
typo3/sysext/backend/Classes/Controller/File/FileController.php
typo3/sysext/backend/Classes/Controller/File/FileUploadController.php
typo3/sysext/backend/Classes/Controller/File/RenameFileController.php
typo3/sysext/backend/Classes/Controller/FileSystemNavigationFrameController.php
typo3/sysext/backend/Classes/Controller/LoginController.php
typo3/sysext/backend/Classes/Controller/NewRecordController.php
typo3/sysext/backend/Classes/Controller/NoDocumentsOpenController.php
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/backend/Classes/Controller/PageTreeNavigationController.php
typo3/sysext/backend/Classes/Controller/SimpleDataHandlerController.php
typo3/sysext/backend/Classes/Controller/Wizard/AddController.php
typo3/sysext/backend/Classes/Controller/Wizard/ColorpickerController.php
typo3/sysext/backend/Classes/Controller/Wizard/EditController.php
typo3/sysext/backend/Classes/Controller/Wizard/FormsController.php
typo3/sysext/backend/Classes/Controller/Wizard/RteController.php
typo3/sysext/backend/Classes/Controller/Wizard/TableController.php
typo3/sysext/backend/Classes/Domain/Repository/Module/BackendModuleRepository.php
typo3/sysext/backend/Classes/Form/DataPreprocessor.php
typo3/sysext/backend/Classes/Form/Element/FlexElement.php
typo3/sysext/backend/Classes/Form/Element/GroupElement.php
typo3/sysext/backend/Classes/Form/Element/InlineElement.php
typo3/sysext/backend/Classes/Form/Element/SelectElement.php
typo3/sysext/backend/Classes/Form/Element/TreeElement.php
typo3/sysext/backend/Classes/Form/Element/ValueSlider.php
typo3/sysext/backend/Classes/Form/FormDataTraverser.php
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/backend/Classes/Form/FrontendFormEngine.php
typo3/sysext/backend/Classes/FrontendBackendUserAuthentication.php
typo3/sysext/backend/Classes/History/RecordHistory.php
typo3/sysext/backend/Classes/Module/AbstractFunctionModule.php
typo3/sysext/backend/Classes/Module/BaseScriptClass.php
typo3/sysext/backend/Classes/Module/ModuleController.php
typo3/sysext/backend/Classes/Module/ModuleLoader.php
typo3/sysext/backend/Classes/Module/ModuleSettings.php
typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php
typo3/sysext/backend/Classes/Rte/AbstractRte.php
typo3/sysext/backend/Classes/Search/LiveSearch/ExtDirect/LiveSearchDataProvider.php
typo3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php
typo3/sysext/backend/Classes/Security/CategoryPermissionsAspect.php
typo3/sysext/backend/Classes/Sprite/SpriteBuildingHandler.php
typo3/sysext/backend/Classes/Sprite/SpriteManager.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/backend/Classes/Toolbar/LiveSearchToolbarItem.php
typo3/sysext/backend/Classes/Toolbar/ShortcutToolbarItem.php
typo3/sysext/backend/Classes/Tree/Pagetree/Commands.php
typo3/sysext/backend/Classes/Tree/Pagetree/DataProvider.php
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeCommands.php
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeDataProvider.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Classes/Utility/IconUtility.php
typo3/sysext/backend/Classes/View/BackendLayoutView.php
typo3/sysext/backend/Classes/View/ModuleMenuView.php
typo3/sysext/backend/Classes/View/PageLayout/Extdirect/ExtdirectPageCommands.php
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/backend/Modules/File/Edit/index.php
typo3/sysext/backend/Modules/File/Newfolder/index.php
typo3/sysext/backend/Modules/File/Rename/index.php
typo3/sysext/backend/Modules/File/Upload/index.php
typo3/sysext/backend/Modules/RecordHistory/index.php
typo3/sysext/backend/Modules/Wizards/AddWizard/index.php
typo3/sysext/backend/Modules/Wizards/BackendLayoutWizard/index.php
typo3/sysext/backend/Modules/Wizards/ColorpickerWizard/index.php
typo3/sysext/backend/Modules/Wizards/EditWizard/index.php
typo3/sysext/backend/Modules/Wizards/FormsWizard/index.php
typo3/sysext/backend/Modules/Wizards/ListWizard/index.php
typo3/sysext/backend/Modules/Wizards/RteWizard/index.php
typo3/sysext/backend/Modules/Wizards/TableWizard/index.php
typo3/sysext/backend/ext_localconf.php
typo3/sysext/belog/Classes/Domain/Repository/LogEntryRepository.php
typo3/sysext/belog/Classes/Module/BackendLogModuleBootstrap.php
typo3/sysext/beuser/Classes/Hook/SwitchBackUserHook.php
typo3/sysext/cms/layout/db_layout.php
typo3/sysext/cms/layout/db_new_content_el.php
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
typo3/sysext/core/Classes/Cache/Backend/FileBackend.php
typo3/sysext/core/Classes/Cache/Backend/PdoBackend.php
typo3/sysext/core/Classes/Charset/CharsetConverter.php
typo3/sysext/core/Classes/Collection/AbstractRecordCollection.php
typo3/sysext/core/Classes/Configuration/FlexForm/FlexFormTools.php
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/Database/DatabaseConnection.php
typo3/sysext/core/Classes/Database/QueryView.php
typo3/sysext/core/Classes/Database/ReferenceIndex.php
typo3/sysext/core/Classes/Database/RelationHandler.php
typo3/sysext/core/Classes/Database/SoftReferenceIndex.php
typo3/sysext/core/Classes/Encoder/JavaScriptEncoder.php
typo3/sysext/core/Classes/Error/ErrorHandler.php
typo3/sysext/core/Classes/ExtDirect/ExtDirectRouter.php
typo3/sysext/core/Classes/FormProtection/BackendFormProtection.php
typo3/sysext/core/Classes/FrontendEditing/FrontendEditingController.php
typo3/sysext/core/Classes/Html/RteHtmlParser.php
typo3/sysext/core/Classes/Http/HttpRequest.php
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php
typo3/sysext/core/Classes/Localization/Locales.php
typo3/sysext/core/Classes/Localization/LocalizationFactory.php
typo3/sysext/core/Classes/Localization/Parser/AbstractXmlParser.php
typo3/sysext/core/Classes/Localization/Parser/LocallangArrayParser.php
typo3/sysext/core/Classes/Log/LogManager.php
typo3/sysext/core/Classes/Log/Logger.php
typo3/sysext/core/Classes/Mail/MailMessage.php
typo3/sysext/core/Classes/Mail/Mailer.php
typo3/sysext/core/Classes/Mail/MboxTransport.php
typo3/sysext/core/Classes/Page/PageRenderer.php
typo3/sysext/core/Classes/Resource/AbstractRepository.php
typo3/sysext/core/Classes/Resource/Collection/FolderBasedFileCollection.php
typo3/sysext/core/Classes/Resource/Collection/StaticFileCollection.php
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Classes/Resource/File.php
typo3/sysext/core/Classes/Resource/FileCollectionRepository.php
typo3/sysext/core/Classes/Resource/FileRepository.php
typo3/sysext/core/Classes/Resource/Index/ExtractorRegistry.php
typo3/sysext/core/Classes/Resource/Index/FileIndexRepository.php
typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php
typo3/sysext/core/Classes/Resource/ProcessedFile.php
typo3/sysext/core/Classes/Resource/ProcessedFileRepository.php
typo3/sysext/core/Classes/Resource/Processing/FileDeletionAspect.php
typo3/sysext/core/Classes/Resource/Processing/LocalCropScaleMaskHelper.php
typo3/sysext/core/Classes/Resource/Processing/LocalImageProcessor.php
typo3/sysext/core/Classes/Resource/Rendering/RendererRegistry.php
typo3/sysext/core/Classes/Resource/ResourceFactory.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/core/Classes/Resource/Service/FileProcessingService.php
typo3/sysext/core/Classes/Resource/Service/UserFileInlineLabelService.php
typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php
typo3/sysext/core/Classes/Resource/Service/UserStorageCapabilityService.php
typo3/sysext/core/Classes/Resource/StorageRepository.php
typo3/sysext/core/Classes/Resource/Utility/BackendUtility.php
typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php
typo3/sysext/core/Classes/Tree/TableConfiguration/TreeDataProviderFactory.php
typo3/sysext/core/Classes/TypoScript/ConfigurationForm.php
typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php
typo3/sysext/core/Classes/TypoScript/TemplateService.php
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/core/Classes/Utility/File/BasicFileUtility.php
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Classes/Utility/MonitorUtility.php
typo3/sysext/core/Classes/Utility/RootlineUtility.php
typo3/sysext/core/Configuration/TCA/Overrides/be_users.php
typo3/sysext/core/Resources/PHP/FileDumpEID.php
typo3/sysext/core/Tests/Functional/Category/Collection/CategoryCollectionTest.php
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/AbstractTestCase.php
typo3/sysext/core/Tests/FunctionalTestCase.php
typo3/sysext/core/Tests/FunctionalTestCaseBootstrapUtility.php
typo3/sysext/core/Tests/Unit/Cache/Backend/PdoBackendTest.php
typo3/sysext/core/Tests/Unit/Cache/Frontend/PhpFrontendTest.php
typo3/sysext/core/Tests/Unit/Configuration/ConditionMatcherTest.php
typo3/sysext/core/Tests/Unit/Localization/Parser/LocallangXmlParserTest.php
typo3/sysext/core/Tests/Unit/Localization/Parser/XliffParserTest.php
typo3/sysext/core/Tests/Unit/Log/LogManagerTest.php
typo3/sysext/core/Tests/Unit/Log/Processor/AbstractProcessorTest.php
typo3/sysext/core/Tests/Unit/Log/Writer/FileWriterTest.php
typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php
typo3/sysext/core/ext_localconf.php
typo3/sysext/core/ext_tables.php
typo3/sysext/cshmanual/Classes/Controller/HelpModuleController.php
typo3/sysext/cshmanual/mod/index.php
typo3/sysext/dbal/Classes/Controller/ModuleController.php
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php
typo3/sysext/dbal/mod1/index.php
typo3/sysext/documentation/Classes/Domain/Repository/DocumentRepository.php
typo3/sysext/documentation/Classes/Service/DocumentationService.php
typo3/sysext/documentation/ext_localconf.php
typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php
typo3/sysext/extbase/Classes/Core/Bootstrap.php
typo3/sysext/extbase/Classes/Object/Container/ClassInfoCache.php
typo3/sysext/extbase/Classes/Object/Container/ClassInfoFactory.php
typo3/sysext/extbase/Classes/Object/Container/Container.php
typo3/sysext/extbase/Classes/Object/ObjectManager.php
typo3/sysext/extbase/Classes/Object/ObjectManagerException.php
typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php
typo3/sysext/extbase/Classes/Persistence/Generic/Query.php
typo3/sysext/extbase/Classes/Persistence/Generic/QueryResult.php
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php
typo3/sysext/extbase/Classes/Persistence/Generic/Typo3QuerySettings.php
typo3/sysext/extbase/Classes/Scheduler/FieldProvider.php
typo3/sysext/extbase/Classes/Scheduler/Task.php
typo3/sysext/extbase/Classes/Scheduler/TaskExecutor.php
typo3/sysext/extbase/Classes/SignalSlot/Dispatcher.php
typo3/sysext/extbase/Classes/Utility/ExtbaseRequirementsCheckUtility.php
typo3/sysext/extbase/Classes/Utility/FrontendSimulatorUtility.php
typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php
typo3/sysext/extbase/Scripts/CommandLineLauncher.php
typo3/sysext/extbase/Tests/Functional/Persistence/AddTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/CountTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/InTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/OperatorTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/QueryParserTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/TranslationTest.php
typo3/sysext/extbase/ext_localconf.php
typo3/sysext/extensionmanager/Classes/Report/ExtensionStatus.php
typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php
typo3/sysext/extensionmanager/Classes/Task/UpdateExtensionListTask.php
typo3/sysext/extensionmanager/Classes/Utility/Importer/ExtensionListUtility.php
typo3/sysext/extensionmanager/Classes/Utility/Importer/MirrorListUtility.php
typo3/sysext/extensionmanager/Classes/Utility/Repository/Helper.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/Form/TypoScriptConstantsViewHelper.php
typo3/sysext/extensionmanager/ext_localconf.php
typo3/sysext/feedit/Classes/FrontendEditPanel.php
typo3/sysext/filelist/Classes/Controller/FileListController.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/filelist/mod1/index.php
typo3/sysext/fluid/Classes/Compatibility/DocbookGeneratorService.php
typo3/sysext/fluid/Classes/Compatibility/TemplateParserBuilder.php
typo3/sysext/fluid/Classes/Core/Compiler/AbstractCompiledTemplate.php
typo3/sysext/fluid/Classes/Core/Parser/Configuration.php
typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/ViewHelperNode.php
typo3/sysext/fluid/Classes/Core/Widget/Bootstrap.php
typo3/sysext/fluid/Classes/View/AbstractTemplateView.php
typo3/sysext/fluid/Classes/View/StandaloneView.php
typo3/sysext/fluid/Classes/View/TemplateView.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/AbstractBackendViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/TableListViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/CObjectViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/CropViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Link/TypolinkViewHelper.php
typo3/sysext/form/Classes/Controller/FormController.php
typo3/sysext/form/Classes/Controller/WizardController.php
typo3/sysext/form/Classes/Domain/Factory/TypoScriptFactory.php
typo3/sysext/form/Classes/Domain/Model/Additional/AbstractAdditionalElement.php
typo3/sysext/form/Classes/Domain/Model/Attribute/AbstractAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/AttributesAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/NameAttribute.php
typo3/sysext/form/Classes/Domain/Model/Element/AbstractElement.php
typo3/sysext/form/Classes/Domain/Model/Element/ButtonElement.php
typo3/sysext/form/Classes/Domain/Model/Element/ResetElement.php
typo3/sysext/form/Classes/Domain/Model/Element/SubmitElement.php
typo3/sysext/form/Classes/Domain/Repository/ContentRepository.php
typo3/sysext/form/Classes/PostProcess/MailPostProcessor.php
typo3/sysext/form/Classes/PostProcess/PostProcessor.php
typo3/sysext/form/Classes/PostProcess/RedirectPostProcessor.php
typo3/sysext/form/Classes/Utility/ValidatorUtility.php
typo3/sysext/form/Classes/Validation/AbstractValidator.php
typo3/sysext/form/Classes/Validation/LengthValidator.php
typo3/sysext/form/Classes/View/Confirmation/ConfirmationView.php
typo3/sysext/form/Classes/View/Confirmation/Element/AbstractElementView.php
typo3/sysext/form/Classes/View/Form/Element/AbstractElementView.php
typo3/sysext/form/Classes/View/Mail/Html/Element/AbstractElementView.php
typo3/sysext/form/Classes/View/Mail/Html/HtmlView.php
typo3/sysext/form/Classes/View/Mail/MailView.php
typo3/sysext/form/Classes/View/Wizard/WizardView.php
typo3/sysext/form/Modules/Wizards/FormWizard/index.php
typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php
typo3/sysext/frontend/Classes/ContentObject/ContentContentObject.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/ContentObject/ContentTableContentObject.php
typo3/sysext/frontend/Classes/ContentObject/Exception/ProductionExceptionHandler.php
typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php
typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php
typo3/sysext/frontend/Classes/ContentObject/HierarchicalMenuContentObject.php
typo3/sysext/frontend/Classes/ContentObject/ImageTextContentObject.php
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php
typo3/sysext/frontend/Classes/ContentObject/Menu/GraphicalMenuContentObject.php
typo3/sysext/frontend/Classes/ContentObject/Menu/ImageMenuContentObject.php
typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php
typo3/sysext/frontend/Classes/ContentObject/RecordsContentObject.php
typo3/sysext/frontend/Classes/ContentObject/SearchResultContentObject.php
typo3/sysext/frontend/Classes/ContentObject/TemplateContentObject.php
typo3/sysext/frontend/Classes/Controller/DataSubmissionController.php
typo3/sysext/frontend/Classes/Controller/ExtDirectEidController.php
typo3/sysext/frontend/Classes/Controller/PageInformationController.php
typo3/sysext/frontend/Classes/Controller/TranslationStatusController.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/FrontendRequestHandler.php
typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
typo3/sysext/frontend/Classes/Page/FramesetRenderer.php
typo3/sysext/frontend/Classes/Page/PageGenerator.php
typo3/sysext/frontend/Classes/Page/PageRepository.php
typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php
typo3/sysext/frontend/Classes/Utility/EidUtility.php
typo3/sysext/frontend/Resources/PHP/Eid/ExtDirect.php
typo3/sysext/frontend/Resources/PHP/Eid/ShowPic.php
typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php
typo3/sysext/frontend/ext_localconf.php
typo3/sysext/func/Classes/Controller/PageFunctionsController.php
typo3/sysext/func/mod1/index.php
typo3/sysext/impexp/Classes/Controller/ImportExportController.php
typo3/sysext/impexp/Classes/ImportExport.php
typo3/sysext/impexp/Classes/Utility/ImportExportUtility.php
typo3/sysext/impexp/Tests/Functional/Export/AbstractExportTestCase.php
typo3/sysext/impexp/Tests/Functional/Import/AbstractImportTestCase.php
typo3/sysext/impexp/app/index.php
typo3/sysext/indexed_search/Classes/Controller/IndexedPagesController.php
typo3/sysext/indexed_search/Classes/Controller/IndexingStatisticsController.php
typo3/sysext/indexed_search/Classes/Controller/ModuleController.php
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/indexed_search/Classes/Controller/SearchFormController.php
typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php
typo3/sysext/indexed_search/Classes/Example/CrawlerHook.php
typo3/sysext/indexed_search/Classes/Hook/CrawlerFilesHook.php
typo3/sysext/indexed_search/Classes/Hook/CrawlerHook.php
typo3/sysext/indexed_search/Classes/Indexer.php
typo3/sysext/indexed_search/Classes/Lexer.php
typo3/sysext/indexed_search/class.crawler.php
typo3/sysext/indexed_search/mod/index.php
typo3/sysext/indexed_search_mysql/Classes/Hook/MysqlFulltextIndexHook.php
typo3/sysext/info/Classes/Controller/InfoModuleController.php
typo3/sysext/info/mod1/index.php
typo3/sysext/info_pagetsconfig/Classes/Controller/InfoPageTyposcriptConfigController.php
typo3/sysext/install/Classes/Controller/AbstractController.php
typo3/sysext/install/Classes/Controller/Action/Step/DatabaseConnect.php
typo3/sysext/install/Classes/Report/EnvironmentStatusReport.php
typo3/sysext/install/Classes/Report/InstallStatusReport.php
typo3/sysext/install/Classes/Service/CachingFrameworkDatabaseSchemaService.php
typo3/sysext/install/Classes/Updates/AbstractDatabaseSchemaUpdate.php
typo3/sysext/install/Classes/Updates/AbstractUpdate.php
typo3/sysext/install/Classes/Updates/CompatVersionUpdate.php
typo3/sysext/install/Classes/View/FailsafeView.php
typo3/sysext/install/Classes/View/StandaloneView.php
typo3/sysext/install/Tests/Unit/Controller/Action/Ajax/ExtensionCompatibilityTesterTest.php
typo3/sysext/install/ext_localconf.php
typo3/sysext/lang/Classes/Domain/Repository/LanguageRepository.php
typo3/sysext/lang/Classes/LanguageService.php
typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php
typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php
typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php
typo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php
typo3/sysext/lowlevel/Classes/CleanFlexformCommand.php
typo3/sysext/lowlevel/Classes/CleanerCommand.php
typo3/sysext/lowlevel/Classes/DeletedRecordsCommand.php
typo3/sysext/lowlevel/Classes/DoubleFilesCommand.php
typo3/sysext/lowlevel/Classes/MissingFilesCommand.php
typo3/sysext/lowlevel/Classes/MissingRelationsCommand.php
typo3/sysext/lowlevel/Classes/OrphanRecordsCommand.php
typo3/sysext/lowlevel/Classes/RteImagesCommand.php
typo3/sysext/lowlevel/Classes/VersionsCommand.php
typo3/sysext/lowlevel/Classes/View/ConfigurationView.php
typo3/sysext/lowlevel/Classes/View/DatabaseIntegrityView.php
typo3/sysext/lowlevel/admin_cli.php
typo3/sysext/lowlevel/config/index.php
typo3/sysext/lowlevel/dbint/cli/cleaner_cli.php
typo3/sysext/lowlevel/dbint/cli/refindex_cli.php
typo3/sysext/lowlevel/dbint/index.php
typo3/sysext/openid/Classes/OpenidService.php
typo3/sysext/openid/Classes/Wizard.php
typo3/sysext/openid/class.tx_openid_eid.php
typo3/sysext/openid/class.tx_openid_return.php
typo3/sysext/perm/Classes/Controller/PermissionAjaxController.php
typo3/sysext/perm/Classes/Controller/PermissionModuleController.php
typo3/sysext/perm/mod1/index.php
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php
typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php
typo3/sysext/recordlist/Classes/RecordList.php
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
typo3/sysext/recordlist/Modules/Wizards/ElementBrowserWizard/index.php
typo3/sysext/recordlist/mod1/index.php
typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php
typo3/sysext/recycler/Classes/Controller/RecyclerModuleController.php
typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php
typo3/sysext/recycler/Classes/Domain/Model/Tables.php
typo3/sysext/recycler/mod1/index.php
typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php
typo3/sysext/reports/Classes/Report/Status/FalStatus.php
typo3/sysext/reports/Classes/Report/Status/SecurityStatus.php
typo3/sysext/reports/Classes/Report/Status/Status.php
typo3/sysext/reports/Classes/Report/Status/SystemStatus.php
typo3/sysext/reports/Classes/Report/Status/Typo3Status.php
typo3/sysext/reports/Classes/Report/Status/WarningMessagePostProcessor.php
typo3/sysext/reports/Classes/Task/SystemStatusUpdateTask.php
typo3/sysext/rsaauth/Classes/Backend/CommandLineBackend.php
typo3/sysext/rsaauth/Classes/Backend/PhpBackend.php
typo3/sysext/rtehtmlarea/Classes/BrowseLinks.php
typo3/sysext/rtehtmlarea/Classes/Controller/BrowseLinksController.php
typo3/sysext/rtehtmlarea/Classes/Controller/ImageRenderingController.php
typo3/sysext/rtehtmlarea/Classes/Controller/ParseHtmlController.php
typo3/sysext/rtehtmlarea/Classes/Controller/SelectImageController.php
typo3/sysext/rtehtmlarea/Classes/Controller/SpellCheckingController.php
typo3/sysext/rtehtmlarea/Classes/Controller/UserElementsController.php
typo3/sysext/rtehtmlarea/Classes/Extension/Abbreviation.php
typo3/sysext/rtehtmlarea/Classes/Hook/SoftReferenceHook.php
typo3/sysext/rtehtmlarea/Classes/Hook/StatusReportConflictsCheckHook.php
typo3/sysext/rtehtmlarea/Classes/RteHtmlAreaBase.php
typo3/sysext/rtehtmlarea/Classes/SelectImage.php
typo3/sysext/rtehtmlarea/Modules/BrowseLinks/index.php
typo3/sysext/rtehtmlarea/Modules/ParseHtml/index.php
typo3/sysext/rtehtmlarea/Modules/SelectImage/index.php
typo3/sysext/rtehtmlarea/Modules/UserElements/index.php
typo3/sysext/rtehtmlarea/Resources/Private/PHP/SpellCheckerEid.php
typo3/sysext/saltedpasswords/Classes/Utility/ExtensionManagerConfigurationUtility.php
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
typo3/sysext/scheduler/Classes/Example/TestTask.php
typo3/sysext/scheduler/Classes/Execution.php
typo3/sysext/scheduler/Classes/Scheduler.php
typo3/sysext/scheduler/Classes/Task/AbstractTask.php
typo3/sysext/scheduler/Classes/Task/CachingFrameworkGarbageCollectionTask.php
typo3/sysext/scheduler/Classes/Task/FileStorageExtractionAdditionalFieldProvider.php
typo3/sysext/scheduler/Classes/Task/FileStorageExtractionTask.php
typo3/sysext/scheduler/Classes/Task/FileStorageIndexingAdditionalFieldProvider.php
typo3/sysext/scheduler/Classes/Task/FileStorageIndexingTask.php
typo3/sysext/scheduler/cli/scheduler_cli_dispatch.php
typo3/sysext/scheduler/mod1/index.php
typo3/sysext/setup/Classes/Controller/SetupModuleController.php
typo3/sysext/setup/mod/index.php
typo3/sysext/sv/Tests/Unit/AuthenticationServiceTest.php
typo3/sysext/sys_action/Classes/ActionTask.php
typo3/sysext/sys_note/Classes/Core/Bootstrap.php
typo3/sysext/sys_note/Classes/Hook/InfoModuleHook.php
typo3/sysext/sys_note/Classes/Hook/PageHook.php
typo3/sysext/sys_note/Classes/Hook/RecordListHook.php
typo3/sysext/t3editor/Classes/CodeCompletion.php
typo3/sysext/t3editor/Classes/FormWizard.php
typo3/sysext/t3editor/Classes/Hook/FileEditHook.php
typo3/sysext/t3editor/Classes/Hook/TypoScriptTemplateInfoHook.php
typo3/sysext/t3skin/ext_localconf.php
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php
typo3/sysext/taskcenter/task/index.php
typo3/sysext/tstemplate/Classes/Controller/TemplateAnalyzerModuleFunctionController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateConstantEditorModuleFunctionController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php
typo3/sysext/tstemplate/ts/index.php
typo3/sysext/version/Classes/Controller/VersionModuleController.php
typo3/sysext/version/Classes/DataHandler/CommandMap.php
typo3/sysext/version/Classes/Dependency/DependencyEntityFactory.php
typo3/sysext/version/Classes/Dependency/DependencyResolver.php
typo3/sysext/version/Classes/Dependency/ElementEntityProcessor.php
typo3/sysext/version/Classes/Hook/DataHandlerHook.php
typo3/sysext/version/Classes/Hook/PreviewHook.php
typo3/sysext/version/Classes/Task/AutoPublishTask.php
typo3/sysext/version/Classes/Utility/WorkspacesUtility.php
typo3/sysext/version/cm1/index.php
typo3/sysext/viewpage/Classes/Controller/ViewModuleController.php
typo3/sysext/wizard_crpages/Classes/Controller/CreatePagesWizardModuleFunctionController.php
typo3/sysext/wizard_sortpages/Classes/View/SortPagesWizardModuleFunction.php
typo3/sysext/workspaces/Classes/Controller/AbstractController.php
typo3/sysext/workspaces/Classes/Controller/PreviewController.php
typo3/sysext/workspaces/Classes/Controller/ReviewController.php
typo3/sysext/workspaces/Classes/Domain/Model/CombinedRecord.php
typo3/sysext/workspaces/Classes/Domain/Model/DatabaseRecord.php
typo3/sysext/workspaces/Classes/ExtDirect/AbstractHandler.php
typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php
typo3/sysext/workspaces/Classes/ExtDirect/ExtDirectServer.php
typo3/sysext/workspaces/Classes/ExtDirect/MassActionHandler.php
typo3/sysext/workspaces/Classes/ExtDirect/WorkspaceSelectorToolbarItem.php
typo3/sysext/workspaces/Classes/Hook/BackendUtilityHook.php
typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php
typo3/sysext/workspaces/Classes/Service/AdditionalColumnService.php
typo3/sysext/workspaces/Classes/Service/AdditionalResourceService.php
typo3/sysext/workspaces/Classes/Service/AutoPublishService.php
typo3/sysext/workspaces/Classes/Service/Dependency/CollectionService.php
typo3/sysext/workspaces/Classes/Service/GridDataService.php
typo3/sysext/workspaces/Classes/Service/HistoryService.php
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php
typo3/sysext/workspaces/Classes/Task/AutoPublishTask.php
typo3/tce_db.php
typo3/tce_file.php
typo3/thumbs.php

index 2c454da..47859a0 100644 (file)
@@ -60,7 +60,7 @@ if ($ajaxRegistryEntry !== NULL) {
 }
 
 // Instantiating the AJAX object
-$ajaxObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Http\\AjaxRequestHandler', $ajaxID);
+$ajaxObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Http\AjaxRequestHandler::class, $ajaxID);
 $ajaxParams = array();
 
 // Evaluating the arguments and calling the AJAX method/function
index e99228a..487e991 100644 (file)
@@ -27,6 +27,6 @@
  */
 require __DIR__ . '/init.php';
 
-$clickMenuController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ClickMenuController');
+$clickMenuController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\ClickMenuController::class);
 $clickMenuController->main();
 $clickMenuController->printContent();
\ No newline at end of file
index b9b65df..2c4d15e 100644 (file)
@@ -21,7 +21,7 @@ require_once 'init.php';
 
 // Make instance if it is not an AJAX call
 if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX)) {
-       $pageTreeNavigationController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\PageTreeNavigationController');
+       $pageTreeNavigationController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\PageTreeNavigationController::class);
        $pageTreeNavigationController->initPage();
        $pageTreeNavigationController->main();
        $pageTreeNavigationController->printContent();
index a66d27a..b3b1a23 100644 (file)
@@ -23,7 +23,7 @@ require_once 'init.php';
 \TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords();
 
 /* @var $editDocumentController \TYPO3\CMS\Backend\Controller\EditDocumentController */
-$editDocumentController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\EditDocumentController');
+$editDocumentController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\EditDocumentController::class);
 
 // Preprocessing, storing data if submitted to
 $editDocumentController->preInit();
index 3014bc2..739ce25 100644 (file)
@@ -21,6 +21,6 @@
  */
 require __DIR__ . '/init.php';
 
-$noDocumentsOpenController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\NoDocumentsOpenController');
+$noDocumentsOpenController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\NoDocumentsOpenController::class);
 $noDocumentsOpenController->main();
 $noDocumentsOpenController->printContent();
index fb020dc..bcc86e1 100644 (file)
@@ -21,7 +21,7 @@ require_once 'init.php';
 
 // Make instance if it is not an AJAX call
 if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX)) {
-       $fileSystemNavigationFrameController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\FileSystemNavigationFrameController');
+       $fileSystemNavigationFrameController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\FileSystemNavigationFrameController::class);
        $fileSystemNavigationFrameController->initPage();
        $fileSystemNavigationFrameController->main();
        $fileSystemNavigationFrameController->printContent();
index b35aad9..ab7b442 100644 (file)
@@ -15,7 +15,7 @@ require_once 'init.php';
 $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
 
 // Document generation
-$TYPO3backend = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\BackendController');
+$TYPO3backend = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\BackendController::class);
 // Include extensions which may add css, javascript or toolbar items
 if (is_array($GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'])) {
        foreach ($GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'] as $additionalBackendItem) {
index 955e270..c6abab3 100644 (file)
@@ -19,6 +19,6 @@
  */
 require __DIR__ . '/init.php';
 
-$elementBrowserFramesetController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Recordlist\\Controller\\ElementBrowserFramesetController');
+$elementBrowserFramesetController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController::class);
 $elementBrowserFramesetController->main();
 $elementBrowserFramesetController->printContent();
index f454122..351f0a7 100644 (file)
@@ -52,6 +52,6 @@ class newRecordLocalPageTree extends \TYPO3\CMS\Backend\Tree\View\PageTreeView {
        }
 }
 
-$newRecordController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\NewRecordController');
+$newRecordController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\NewRecordController::class);
 $newRecordController->main();
 $newRecordController->printContent();
index c93c06c..e8c225b 100644 (file)
@@ -19,6 +19,6 @@
  */
 require __DIR__ . '/init.php';
 
-$dummyController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\DummyController');
+$dummyController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\DummyController::class);
 $dummyController->main();
 $dummyController->printContent();
index 0d409a0..f919194 100644 (file)
@@ -23,6 +23,6 @@ require __DIR__ . '/init.php';
        'Editing a file is moved to an own module. Please use BackendUtility::getModuleUrl(\'file_edit\') to link to file_edit.php. This script will be removed in two versions.'
 );
 
-$editFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\EditFileController');
+$editFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\File\EditFileController::class);
 $editFileController->main();
 $editFileController->printContent();
index c929dd6..c9711e0 100644 (file)
@@ -23,6 +23,6 @@ require __DIR__ . '/init.php';
        'Creating a new folder is moved to an own module. Please use BackendUtility::getModuleUrl(\'file_newfolder\') to link to this script. This script will be removed in two versions.'
 );
 
-$createFolderController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\CreateFolderController');
+$createFolderController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\File\CreateFolderController::class);
 $createFolderController->main();
 $createFolderController->printContent();
index e8de92b..420cec6 100644 (file)
@@ -23,6 +23,6 @@ require __DIR__ . '/init.php';
        'Renaming a file/folder is moved to an own module. Please use BackendUtility::getModuleUrl(\'file_rename\') to link to this script. This script will be removed.'
 );
 
-$renameFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\RenameFileController');
+$renameFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\File\RenameFileController::class);
 $renameFileController->main();
 $renameFileController->printContent();
index 2356e2d..a56a7a3 100644 (file)
@@ -23,6 +23,6 @@ require __DIR__ . '/init.php';
        'Uploading a file is moved to an own module. Please use BackendUtility::getModuleUrl(\'file_upload\') to link to this script. This script will be removed.'
 );
 
-$fileUploadController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\FileUploadController');
+$fileUploadController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\File\FileUploadController::class);
 $fileUploadController->main();
 $fileUploadController->printContent();
\ No newline at end of file
index 5fa5343..bfa2fa4 100644 (file)
@@ -45,6 +45,6 @@ if (!empty($_SERVER['HTTP_REFERER'])) {
        unset($typo3RequestDir);
 }
 
-$loginController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\LoginController');
+$loginController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\LoginController::class);
 $loginController->main();
 $loginController->printContent();
index 9bf3077..0b21e39 100644 (file)
@@ -19,5 +19,5 @@
  */
 require __DIR__ . '/init.php';
 
-$listFrameLoaderController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ListFrameLoaderController');
+$listFrameLoaderController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\ListFrameLoaderController::class);
 $listFrameLoaderController->main();
index 110ade6..d8e4236 100644 (file)
@@ -23,6 +23,6 @@ define('TYPO3_PROCEED_IF_NO_USER', 1);
 require __DIR__ . '/init.php';
 
 // Make instance:
-$loginFramesetController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\LoginFramesetController');
+$loginFramesetController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\LoginFramesetController::class);
 $loginFramesetController->main();
 $loginFramesetController->printContent();
index b7dee7c..3d00c8a 100644 (file)
@@ -20,5 +20,5 @@
  */
 require __DIR__ . '/init.php';
 
-$logoutController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\LogoutController');
+$logoutController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\LogoutController::class);
 $logoutController->logout();
index 28efd84..6942247 100644 (file)
@@ -34,7 +34,7 @@ if ($temp_path = $TBE_MODULES['_PATHS'][$moduleName]) {
 } else {
        if (is_array($TBE_MODULES['_dispatcher'])) {
                foreach ($TBE_MODULES['_dispatcher'] as $dispatcherClassName) {
-                       $dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager')->get($dispatcherClassName);
+                       $dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class)->get($dispatcherClassName);
                        if ($dispatcher->callModule($moduleName) === TRUE) {
                                $isDispatched = TRUE;
                                break;
index 3b268f1..966d928 100644 (file)
@@ -142,6 +142,6 @@ class ext_posMap_tt_content extends \TYPO3\CMS\Backend\Tree\View\PagePositionMap
        }
 }
 
-$moveElementController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ContentElement\\MoveElementController');
+$moveElementController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\ContentElement\MoveElementController::class);
 $moveElementController->main();
 $moveElementController->printContent();
index e89dbee..947e27a 100644 (file)
@@ -24,6 +24,6 @@ require __DIR__ . '/init.php';
        This script will be removed two versions after 6.2.'
 );
 
-$elementHistoryController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ContentElement\\ElementHistoryController');
+$elementHistoryController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::class);
 $elementHistoryController->main();
 $elementHistoryController->printContent();
index 366ae82..2d3c6ab 100644 (file)
@@ -96,7 +96,7 @@ class ModulesController extends ActionController {
         */
        protected function getModulesData() {
                /** @var $loadedModules \TYPO3\CMS\Backend\Module\ModuleLoader */
-               $loadedModules = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+               $loadedModules = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                $loadedModules->observeWorkspaces = TRUE;
                $loadedModules->load($GLOBALS['TBE_MODULES']);
                $mainModulesData = array();
index 0f96c80..b649410 100644 (file)
@@ -92,7 +92,7 @@ class TsConfigParser extends \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
         */
        protected function parseWithConditions($TSconfig) {
                /** @var $matchObj \TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher */
-               $matchObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TypoScript\\ConditionMatching\\ConditionMatcher');
+               $matchObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher::class);
                $matchObj->setRootline($this->rootLine);
                $matchObj->setPageId($this->id);
                $this->parse($TSconfig, $matchObj);
@@ -113,7 +113,7 @@ class TsConfigParser extends \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
        protected function matching(array $cc) {
                if (is_array($cc['sections'])) {
                        /** @var $matchObj \TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher */
-                       $matchObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TypoScript\\ConditionMatching\\ConditionMatcher');
+                       $matchObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher::class);
                        $matchObj->setRootline($this->rootLine);
                        $matchObj->setPageId($this->id);
                        foreach ($cc['sections'] as $key => $pre) {
index e76e854..7458235 100644 (file)
@@ -150,7 +150,7 @@ abstract class AbstractContextMenuDataProvider {
         */
        protected function getNextContextMenuLevel(array $actions, \TYPO3\CMS\Backend\Tree\TreeNode $node, $level = 0) {
                /** @var $actionCollection \TYPO3\CMS\Backend\ContextMenu\ContextMenuActionCollection */
-               $actionCollection = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\ContextMenu\\ContextMenuActionCollection');
+               $actionCollection = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\ContextMenu\ContextMenuActionCollection::class);
                if ($level > 5) {
                        return $actionCollection;
                }
@@ -166,7 +166,7 @@ abstract class AbstractContextMenuDataProvider {
                                continue;
                        }
                        /** @var $action \TYPO3\CMS\Backend\ContextMenu\ContextMenuAction */
-                       $action = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\ContextMenu\\ContextMenuAction');
+                       $action = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\ContextMenu\ContextMenuAction::class);
                        $action->setId($index);
                        if ($type === 'DIVIDER') {
                                $action->setType('divider');
index 1735d29..f3f03a7 100644 (file)
@@ -40,11 +40,11 @@ abstract class AbstractExtdirectContextMenu extends \TYPO3\CMS\Backend\ContextMe
         */
        public function getActionsForNodeArray($nodeData) {
                if ($this->dataProvider === NULL) {
-                       $dataProvider = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\ContextMenu\\AbstractContextMenuDataProvider');
+                       $dataProvider = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::class);
                        $this->setDataProvider($dataProvider);
                }
                /** @var $node \TYPO3\CMS\Backend\Tree\TreeNode */
-               $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\TreeNode', (array)$nodeData);
+               $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\TreeNode::class, (array)$nodeData);
                $actions = $this->dataProvider->getActionsForNode($node);
                return $actions;
        }
index eeb4ebb..c783e40 100644 (file)
@@ -28,7 +28,7 @@ class ContextMenuConfiguration extends \TYPO3\CMS\Backend\ContextMenu\Extdirect\
         */
        protected function initDataProvider() {
                /** @var $dataProvider \TYPO3\CMS\Backend\ContextMenu\Pagetree\ContextMenuDataProvider */
-               $dataProvider = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\ContextMenu\\Pagetree\\ContextMenuDataProvider');
+               $dataProvider = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\ContextMenu\Pagetree\ContextMenuDataProvider::class);
                $this->setDataProvider($dataProvider);
        }
 
@@ -40,7 +40,7 @@ class ContextMenuConfiguration extends \TYPO3\CMS\Backend\ContextMenu\Extdirect\
         */
        public function getActionsForNodeArray($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                $node->setRecord(\TYPO3\CMS\Backend\Tree\Pagetree\Commands::getNodeRecord($node->getId()));
                $this->initDataProvider();
                $this->dataProvider->setContextMenuType('table.' . $node->getType());
index d8a8f86..96965f8 100644 (file)
@@ -96,12 +96,12 @@ class BackendController {
         * Constructor
         */
        public function __construct() {
-               $this->backendModuleRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Domain\\Repository\\Module\\BackendModuleRepository');
+               $this->backendModuleRepository = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Domain\Repository\Module\BackendModuleRepository::class);
 
                // Set debug flag for BE development only
                $this->debug = (int)$GLOBALS['TYPO3_CONF_VARS']['BE']['debug'] === 1;
                // Initializes the backend modules structure for use later.
-               $this->moduleLoader = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+               $this->moduleLoader = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                $this->moduleLoader->load($GLOBALS['TBE_MODULES']);
                $this->pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
                $this->pageRenderer->loadScriptaculous('builder,effects,controls,dragdrop');
@@ -186,7 +186,7 @@ class BackendController {
                $this->executeHook('renderPreProcess');
 
                // Prepare the scaffolding, at this point extension may still add javascript and css
-               $logo = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\View\\LogoView');
+               $logo = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\View\LogoView::class);
 
                // Create backend scaffolding
                $backendScaffolding = '
@@ -793,7 +793,7 @@ class BackendController {
                $moduleStorage = $this->backendModuleRepository->loadAllowedModules(array('user'));
 
                /** @var $view \TYPO3\CMS\Fluid\View\StandaloneView */
-               $view = GeneralUtility::makeInstance('TYPO3\\CMS\\Fluid\\View\\StandaloneView');
+               $view = GeneralUtility::makeInstance(\TYPO3\CMS\Fluid\View\StandaloneView::class);
                $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName('EXT:backend/Resources/Private/Templates/ModuleMenu/Main.html'));
                $view->assign('modules', $moduleStorage);
                return $view->render();
index 5803d48..dd135aa 100644 (file)
@@ -64,7 +64,7 @@ class BackendLayoutWizardController {
                $this->md5ID = $this->P['md5ID'];
                $uid = (int)$this->P['uid'];
                // Initialize document object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $pageRenderer = $this->doc->getPageRenderer();
                $pageRenderer->addJsFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('cms') . 'layout/res/grideditor.js');
@@ -97,7 +97,7 @@ class BackendLayoutWizardController {
                        $rowCount = 1;
                } else {
                        // load TS parser
-                       $parser = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TypoScript\\Parser\\TypoScriptParser');
+                       $parser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::class);
                        $parser->parse($record[0][$this->P['field']]);
                        $data = $parser->setup['backend_layout.'];
                        $rows = array();
index 559afb1..6478807 100644 (file)
@@ -87,7 +87,7 @@ class ClickMenuController {
                $this->extClassArray = $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'];
 
                // Initialize template object
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
 
                // Setting mode for display and background image in the top frame
@@ -149,7 +149,7 @@ class ClickMenuController {
         */
        public function main() {
                // Initialize Clipboard object:
-               $clipObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Clipboard\\Clipboard');
+               $clipObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Clipboard\Clipboard::class);
                $clipObj->initializeClipboard();
                // This locks the clipboard to the Normal for this request.
                $clipObj->lockToNormal();
@@ -160,7 +160,7 @@ class ClickMenuController {
                // Saves
                $clipObj->endClipboard();
                // Create clickmenu object
-               $clickMenu = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\ClickMenu\\ClickMenu');
+               $clickMenu = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\ClickMenu\ClickMenu::class);
                // Set internal vars in clickmenu object:
                $clickMenu->clipObj = $clipObj;
                $clickMenu->extClassArray = $this->extClassArray;
@@ -188,7 +188,7 @@ class ClickMenuController {
        public function printContentForAjaxRequest($parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxRequestHandler) {
 
                $this->init();
-               $clipObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Clipboard\\Clipboard');
+               $clipObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Clipboard\Clipboard::class);
                $clipObj->initializeClipboard();
                // This locks the clipboard to the Normal for this request.
                $clipObj->lockToNormal();
@@ -199,7 +199,7 @@ class ClickMenuController {
                // Saves
                $clipObj->endClipboard();
                // Create clickmenu object
-               $clickMenu = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\ClickMenu\\ClickMenu');
+               $clickMenu = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\ClickMenu\ClickMenu::class);
                $clickMenu->ajax = TRUE;
                // Set internal vars in clickmenu object:
                $clickMenu->clipObj = $clipObj;
index d1142ba..da90726 100644 (file)
@@ -53,7 +53,7 @@ class ElementHistoryController {
         */
        protected function init() {
                // Create internal template object
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/show_rechis.html');
                // Start the page header
@@ -67,7 +67,7 @@ class ElementHistoryController {
         */
        public function main() {
                // Start history object
-               $historyObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\History\\RecordHistory');
+               $historyObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\History\RecordHistory::class);
                // Get content:
                $this->content .= $historyObj->main();
                // Setting up the buttons and markers for docheader
@@ -103,7 +103,7 @@ class ElementHistoryController {
                // CSH
                $buttons['csh'] = \TYPO3\CMS\Backend\Utility\BackendUtility::cshItem('xMOD_csh_corebe', 'history_log', $GLOBALS['BACK_PATH'], '', TRUE);
                // Start history object
-               $historyObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\History\\RecordHistory');
+               $historyObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\History\RecordHistory::class);
                if ($historyObj->returnUrl) {
                        $buttons['back'] = '<a href="' . htmlspecialchars($historyObj->returnUrl) . '" class="typo3-goBack">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-view-go-back') . '</a>';
                }
index 0f26488..f02baa7 100644 (file)
@@ -115,7 +115,7 @@ class ElementInformationController {
                $this->uid = GeneralUtility::_GET('uid');
 
                $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
 
                if (isset($GLOBALS['TCA'][$this->table])) {
                        $this->initDatabaseRecord();
@@ -145,7 +145,7 @@ class ElementInformationController {
                                }
                        }
                        /** @var $treatData \TYPO3\CMS\Backend\Form\DataPreprocessor */
-                       $treatData = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\DataPreprocessor');
+                       $treatData = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\DataPreprocessor::class);
                        $treatData->renderRecord($this->table, $this->uid, 0, $this->row);
                }
        }
@@ -253,7 +253,7 @@ class ElementInformationController {
                } else {
 
                        /** @var \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry $rendererRegistry */
-                       $rendererRegistry = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\Rendering\\RendererRegistry');
+                       $rendererRegistry = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::class);
                        $fileRenderer = $rendererRegistry->getRenderer($this->fileObject);
                        $fileExtension = $this->fileObject->getExtension();
                        $url = $this->fileObject->getPublicUrl(TRUE);
index 4d52bd7..4cf3784 100644 (file)
@@ -107,7 +107,7 @@ class MoveElementController {
                // Select-pages where clause for read-access:
                $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
                // Starting the document template object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/move_el.html');
                $this->doc->JScode = '';
@@ -144,7 +144,7 @@ class MoveElementController {
                                $pageinfo = BackendUtility::readPageAccess($this->page_id, $this->perms_clause);
                                if (is_array($pageinfo) && $GLOBALS['BE_USER']->isInWebMount($pageinfo['pid'], $this->perms_clause)) {
                                        // Initialize the position map:
-                                       $posMap = GeneralUtility::makeInstance('ext_posMap_pages');
+                                       $posMap = GeneralUtility::makeInstance(\ext_posMap_pages::class);
                                        $posMap->moveOrCopy = $this->makeCopy ? 'copy' : 'move';
                                        // Print a "go-up" link IF there is a real parent page (and if the user has read-access to that page).
                                        if ($pageinfo['pid']) {
@@ -173,7 +173,7 @@ class MoveElementController {
                                $pageinfo = BackendUtility::readPageAccess($this->page_id, $this->perms_clause);
                                if (is_array($pageinfo) && $GLOBALS['BE_USER']->isInWebMount($pageinfo['pid'], $this->perms_clause)) {
                                        // Initialize the position map:
-                                       $posMap = GeneralUtility::makeInstance('ext_posMap_tt_content');
+                                       $posMap = GeneralUtility::makeInstance(\ext_posMap_tt_content::class);
                                        $posMap->moveOrCopy = $this->makeCopy ? 'copy' : 'move';
                                        $posMap->cur_sys_language = $this->sys_language;
                                        // Headerline for the parent page: Icon, record title:
index 2daf18c..556a693 100644 (file)
@@ -121,7 +121,7 @@ class NewContentElementController {
                $config = BackendUtility::getPagesTSconfig($this->id);
                $this->config = $config['mod.']['wizards.']['newContentElement.'];
                // Starting the document template object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/db_new_content_el.html');
                $this->doc->JScode = '';
@@ -142,7 +142,7 @@ class NewContentElementController {
        public function main() {
                if ($this->id && $this->access) {
                        // Init position map object:
-                       $posMap = GeneralUtility::makeInstance('ext_posMap');
+                       $posMap = GeneralUtility::makeInstance(\ext_posMap::class);
                        $posMap->cur_sys_language = $this->sys_language;
                        $posMap->backPath = $GLOBALS['BACK_PATH'];
                        // If a column is pre-set:
index f302a95..a183001 100644 (file)
@@ -398,7 +398,7 @@ class EditDocumentController {
         */
        protected function getSignalSlotDispatcher() {
                if (!isset($this->signalSlotDispatcher)) {
-                       $this->signalSlotDispatcher = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
+                       $this->signalSlotDispatcher = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
                }
                return $this->signalSlotDispatcher;
        }
@@ -500,7 +500,7 @@ class EditDocumentController {
                // See tce_db.php for relevate options here:
                // Only options related to $this->data submission are included here.
                /** @var $tce \TYPO3\CMS\Core\DataHandling\DataHandler */
-               $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+               $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                $tce->stripslashes_values = 0;
 
                if (!empty($control)) {
@@ -707,7 +707,7 @@ class EditDocumentController {
                // Begin edit:
                if (is_array($this->editconf)) {
                        // Initialize TCEforms (rendering the forms)
-                       $this->tceforms = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine');
+                       $this->tceforms = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\FormEngine::class);
                        $this->tceforms->initDefaultBEMode();
                        $this->tceforms->doSaveFieldName = 'doSave';
                        $this->tceforms->localizationMode = GeneralUtility::inList('text,media', $this->localizationMode) ? $this->localizationMode : '';
@@ -719,7 +719,7 @@ class EditDocumentController {
                        $this->tceforms->enableTabMenu = TRUE;
                        // Clipboard is initialized:
                        // Start clipboard
-                       $this->tceforms->clipObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Clipboard\\Clipboard');
+                       $this->tceforms->clipObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Clipboard\Clipboard::class);
                        // Initialize - reads the clipboard content from the user session
                        $this->tceforms->clipObj->initializeClipboard();
                        // Setting external variables:
@@ -887,7 +887,7 @@ class EditDocumentController {
                                                        // records and we can now proceed with creating the form elements:
                                                        if ($hasAccess) {
                                                                $prevPageID = is_object($trData) ? $trData->prevPageID : '';
-                                                               $trData = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\DataPreprocessor');
+                                                               $trData = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\DataPreprocessor::class);
                                                                $trData->addRawData = TRUE;
                                                                $trData->defVals = $this->defVals;
                                                                $trData->lockRecords = 1;
@@ -941,9 +941,9 @@ class EditDocumentController {
                                                                        }
                                                                        // Display "is-locked" message:
                                                                        if ($lockInfo = BackendUtility::isRecordLocked($table, $rec['uid'])) {
-                                                                               $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', htmlspecialchars($lockInfo['msg']), '', \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING);
+                                                                               $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, htmlspecialchars($lockInfo['msg']), '', \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING);
                                                                                /** @var $flashMessageService \TYPO3\CMS\Core\Messaging\FlashMessageService */
-                                                                               $flashMessageService = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessageService');
+                                                                               $flashMessageService = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessageService::class);
                                                                                /** @var $defaultFlashMessageQueue \TYPO3\CMS\Core\Messaging\FlashMessageQueue */
                                                                                $defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
                                                                                $defaultFlashMessageQueue->enqueue($flashMessage);
index 77a527f..5785fc3 100644 (file)
@@ -114,7 +114,7 @@ class CreateFolderController {
                $icon = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('apps-filetree-root');
                $this->title = $icon . htmlspecialchars($this->folderObject->getStorage()->getName()) . ': ' . htmlspecialchars($this->folderObject->getIdentifier());
                // Setting template object
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_newfolder.html');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
index ee25178..93494f3 100644 (file)
@@ -110,7 +110,7 @@ class EditFileController {
                $this->title = $icon . htmlspecialchars($this->fileObject->getStorage()->getName()) . ': ' . htmlspecialchars($this->fileObject->getIdentifier());
 
                // Setting template object
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_edit.html');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
index a4618b8..48507c6 100644 (file)
@@ -100,7 +100,7 @@ class FileController {
                $this->vC = GeneralUtility::_GP('vC');
                $this->redirect = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('redirect'));
                $this->initClipboard();
-               $this->fileProcessor = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Utility\\File\\ExtendedFileUtility');
+               $this->fileProcessor = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Utility\File\ExtendedFileUtility::class);
        }
 
        /**
@@ -110,7 +110,7 @@ class FileController {
         */
        public function initClipboard() {
                if (is_array($this->CB)) {
-                       $clipObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Clipboard\\Clipboard');
+                       $clipObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Clipboard\Clipboard::class);
                        $clipObj->initializeClipboard();
                        if ($this->CB['paste']) {
                                $clipObj->setCurrentPad($this->CB['pad']);
index dbca096..485ff95 100644 (file)
@@ -107,7 +107,7 @@ class FileUploadController {
                $icon = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('apps-filetree-root');
                $this->title = $icon . htmlspecialchars($this->folderObject->getStorage()->getName()) . ': ' . htmlspecialchars($this->folderObject->getIdentifier());
                // Setting template object
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_upload.html');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->form = '<form action="tce_file.php" method="post" name="editform" enctype="' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['form_enctype'] . '">';
index 6bea5bd..26638c7 100644 (file)
@@ -112,7 +112,7 @@ class RenameFileController {
                $icon = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('apps-filetree-root');
                $this->title = $icon . htmlspecialchars($this->fileOrFolderObject->getStorage()->getName()) . ': ' . htmlspecialchars($this->fileOrFolderObject->getIdentifier());
                // Setting template object
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/file_rename.html');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
index a0d58a5..117d9a0 100644 (file)
@@ -101,7 +101,7 @@ class FileSystemNavigationFrameController {
                        $GLOBALS['SOBE']->browser->mode = $this->scopeData['browser']['mode'];
                        $GLOBALS['SOBE']->browser->act = $this->scopeData['browser']['act'];
                } else {
-                       $this->foldertree = GeneralUtility::makeInstance('TYPO3\\CMS\\Filelist\\FileListFolderTree');
+                       $this->foldertree = GeneralUtility::makeInstance(\TYPO3\CMS\Filelist\FileListFolderTree::class);
                        $this->foldertree->thisScript = 'alt_file_navframe.php';
                }
 
@@ -118,7 +118,7 @@ class FileSystemNavigationFrameController {
                // Setting highlight mode:
                $this->doHighlight = !$GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.disableTitleHighlight');
                // Create template object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/alt_file_navframe.html');
                $this->doc->showFlashMessages = FALSE;
index 2c52076..8f31afd 100644 (file)
@@ -500,7 +500,7 @@ class LoginController {
                // Traverse news array IF there are records in it:
                if (is_array($systemNews) && count($systemNews) && !GeneralUtility::_GP('loginRefresh')) {
                        /** @var $htmlParser \TYPO3\CMS\Core\Html\RteHtmlParser */
-                       $htmlParser = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Html\\RteHtmlParser');
+                       $htmlParser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Html\RteHtmlParser::class);
                        $htmlParser->procOptions['dontHSC_rte'] = TRUE;
 
                        // Get the main news template, and replace the subpart after looped through
@@ -631,7 +631,7 @@ class LoginController {
         * @return \TYPO3\CMS\Extbase\Object\ObjectManager
         */
        protected function getObjectManager() {
-               return GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
+               return GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
        }
 
 }
index 83181c4..a2b3c7c 100644 (file)
@@ -170,7 +170,7 @@ class NewRecordController {
                $this->returnUrl = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP('returnUrl'));
                $this->pagesOnly = GeneralUtility::_GP('pagesOnly');
                // Create instance of template class for output
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/db_new.html');
                $this->doc->JScode = '';
@@ -312,7 +312,7 @@ class NewRecordController {
                        $this->code .= '
                                <h3>' . htmlspecialchars($GLOBALS['LANG']->getLL('selectPosition')) . ':</h3>
                        ';
-                       $positionMap = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\View\\PagePositionMap', 'newRecordLocalPageTree');
+                       $positionMap = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\View\PagePositionMap::class, 'newRecordLocalPageTree');
                        /** @var $positionMap \TYPO3\CMS\Backend\Tree\View\PagePositionMap */
                        $this->code .= $positionMap->positionTree($this->id, $this->pageinfo, $this->perms_clause, $this->R_URI);
                } else {
index 99457b2..a72f3e0 100644 (file)
@@ -59,7 +59,7 @@ class NoDocumentsOpenController {
         */
        protected function init() {
                // Start the template object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->bodyTagMargins['x'] = 5;
                $this->doc->bodyTagMargins['y'] = 5;
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
@@ -81,7 +81,7 @@ class NoDocumentsOpenController {
                $this->content = '';
                $this->content .= $this->doc->startPage('TYPO3 Edit Document');
                // Loads the backend modules available for the logged in user.
-               $this->loadModules = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+               $this->loadModules = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                $this->loadModules->load($GLOBALS['TBE_MODULES']);
        }
 
@@ -125,7 +125,7 @@ class NoDocumentsOpenController {
                        $msg[] = '<p>' . sprintf($GLOBALS['LANG']->getLL('noDocuments_msg2', 1), implode(' ', $msg_2)) . '</p><br />';
                }
                // Display the list of the most recently edited documents:
-               $modObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Opendocs\\Controller\\OpendocsController');
+               $modObj = GeneralUtility::makeInstance(\TYPO3\CMS\Opendocs\Controller\OpendocsController::class);
                $msg[] = '<p>' . $GLOBALS['LANG']->getLL('noDocuments_msg3', TRUE) . '</p><br />' . $modObj->renderMenu();
                // Adding the content:
                $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('noDocuments'), implode(' ', $msg), 0, 1);
index 1a2ff23..43799e0 100644 (file)
@@ -366,7 +366,7 @@ class PageLayoutController {
         */
        public function clearCache() {
                if ($this->clear_cache) {
-                       $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+                       $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                        $tce->stripslashes_values = 0;
                        $tce->start(array(), array());
                        $tce->clear_cacheCmd($this->id);
@@ -383,11 +383,11 @@ class PageLayoutController {
                // If page is a folder
                if ($this->pageinfo['doktype'] == \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER) {
                        // Access to list module
-                       $moduleLoader = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+                       $moduleLoader = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                        $moduleLoader->load($GLOBALS['TBE_MODULES']);
                        $modules = $moduleLoader->modules;
                        if (is_array($modules['web']['sub']['list'])) {
-                               $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', '<p>' . $GLOBALS['LANG']->getLL('goToListModuleMessage') . '</p>
+                               $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, '<p>' . $GLOBALS['LANG']->getLL('goToListModuleMessage') . '</p>
                                        <p>' . IconUtility::getSpriteIcon('actions-system-list-open') . '<a href="javascript:top.goToModule( \'web_list\',1);">' . $GLOBALS['LANG']->getLL('goToListModule') . '
                                                </a>
                                        </p>', '', FlashMessage::INFO);
@@ -400,7 +400,7 @@ class PageLayoutController {
                        $title = BackendUtility::getRecordTitle('pages', $contentPage);
                        $linkToPid = $this->local_linkThisScript(array('id' => $this->pageinfo['content_from_pid']));
                        $link = '<a href="' . $linkToPid . '">' . htmlspecialchars($title) . ' (PID ' . (int)$this->pageinfo['content_from_pid'] . ')</a>';
-                       $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', sprintf($GLOBALS['LANG']->getLL('content_from_pid_title'), $link), '', FlashMessage::INFO);
+                       $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, sprintf($GLOBALS['LANG']->getLL('content_from_pid_title'), $link), '', FlashMessage::INFO);
                        $content .= $flashMessage->render();
                }
                return $content;
@@ -445,7 +445,7 @@ class PageLayoutController {
                        $this->CALC_PERMS = $GLOBALS['BE_USER']->calcPerms($this->pageinfo);
                        $this->EDIT_CONTENT = $this->CALC_PERMS & 16 ? 1 : 0;
                        // Start document template object:
-                       $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+                       $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                        $this->doc->backPath = $GLOBALS['BACK_PATH'];
                        $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/db_layout.html');
                        // JavaScript:
@@ -603,13 +603,13 @@ class PageLayoutController {
                        $this->content = $this->doc->render($GLOBALS['LANG']->getLL('title'), $this->content);
                } else {
                        // If no access or id value, create empty document:
-                       $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+                       $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                        $this->doc->backPath = $GLOBALS['BACK_PATH'];
                        $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/db_layout.html');
                        $this->doc->JScode = $this->doc->wrapScriptTags('
                                if (top.fsMod) top.fsMod.recentIds["web"] = ' . (int)$this->id . ';
                        ');
-                       $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $GLOBALS['LANG']->getLL('clickAPage_content'), $GLOBALS['LANG']->getLL('clickAPage_header'), FlashMessage::INFO);
+                       $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, $GLOBALS['LANG']->getLL('clickAPage_content'), $GLOBALS['LANG']->getLL('clickAPage_header'), FlashMessage::INFO);
                        $body = $flashMessage->render();
                        // Setting up the buttons and markers for docheader
                        $docHeaderButtons = array(
@@ -765,7 +765,7 @@ class PageLayoutController {
                                }
                        }
                        // Initializing transfer-data object:
-                       $trData = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\DataPreprocessor');
+                       $trData = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\DataPreprocessor::class);
                        $trData->addRawData = TRUE;
                        $trData->defVals[$this->eRParts[0]] = array(
                                'colPos' => (int)$ex_colPos,
@@ -794,7 +794,7 @@ class PageLayoutController {
                        } elseif (is_array($rec)) {
                                // If the record is an array (which it will always be... :-)
                                // Create instance of TCEforms, setting defaults:
-                               $tceforms = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine');
+                               $tceforms = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\FormEngine::class);
                                $tceforms->backPath = $GLOBALS['BACK_PATH'];
                                $tceforms->initDefaultBEMode();
                                $tceforms->fieldOrder = $this->modTSconfig['properties']['tt_content.']['fieldOrder'];
@@ -803,7 +803,7 @@ class PageLayoutController {
                                $tceforms->enableClickMenu = TRUE;
                                // Clipboard is initialized:
                                // Start clipboard
-                               $tceforms->clipObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Clipboard\\Clipboard');
+                               $tceforms->clipObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Clipboard\Clipboard::class);
                                // Initialize - reads the clipboard content from the user session
                                $tceforms->clipObj->initializeClipboard();
                                // Render form, wrap it:
@@ -825,9 +825,9 @@ class PageLayoutController {
                                $theCode = $tceforms->printNeededJSFunctions_top() . $theCode . $tceforms->printNeededJSFunctions();
                                // Add warning sign if record was "locked":
                                if ($lockInfo = BackendUtility::isRecordLocked($this->eRParts[0], $rec['uid'])) {
-                                       $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', htmlspecialchars($lockInfo['msg']), '', FlashMessage::WARNING);
+                                       $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, htmlspecialchars($lockInfo['msg']), '', FlashMessage::WARNING);
                                        /** @var $flashMessageService \TYPO3\CMS\Core\Messaging\FlashMessageService */
-                                       $flashMessageService = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessageService');
+                                       $flashMessageService = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessageService::class);
                                        /** @var $defaultFlashMessageQueue \TYPO3\CMS\Core\Messaging\FlashMessageQueue */
                                        $defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
                                        $defaultFlashMessageQueue->enqueue($flashMessage);
@@ -877,7 +877,7 @@ class PageLayoutController {
                $content .= $this->doc->spacer(10);
                // Select element matrix:
                if ($this->eRParts[0] == 'tt_content' && MathUtility::canBeInterpretedAsInteger($this->eRParts[1])) {
-                       $posMap = GeneralUtility::makeInstance('ext_posMap');
+                       $posMap = GeneralUtility::makeInstance(\ext_posMap::class);
                        $posMap->backPath = $GLOBALS['BACK_PATH'];
                        $posMap->cur_sys_language = $this->current_sys_language;
                        $HTMLcode = '';
@@ -907,7 +907,7 @@ class PageLayoutController {
        public function renderListContent() {
                // Initialize list object (see "class.db_layout.inc"):
                /** @var $dblist \TYPO3\CMS\Backend\View\PageLayoutView */
-               $dblist = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\View\\PageLayoutView');
+               $dblist = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\View\PageLayoutView::class);
                $dblist->backPath = $GLOBALS['BACK_PATH'];
                $dblist->thumbs = $this->imagemode;
                $dblist->no_noWrap = 1;
index c00331c..eadd567 100644 (file)
@@ -109,7 +109,7 @@ class PageTreeNavigationController {
                // look for User setting
                $this->hasFilterBox = !$GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.hideFilter');
                // Create page tree object:
-               $this->pagetree = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\View\\PageTreeView');
+               $this->pagetree = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\View\PageTreeView::class);
                $this->pagetree->ext_IconMode = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.disableIconLinkToContextmenu');
                $this->pagetree->ext_showPageId = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showPageIdWithTitle');
                $this->pagetree->ext_showNavTitle = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showNavTitle');
@@ -142,7 +142,7 @@ class PageTreeNavigationController {
                        $hlClass = $GLOBALS['BE_USER']->workspace === 0 ? 'active' : 'active active-ws wsver' . $GLOBALS['BE_USER']->workspace;
                }
                // Create template object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/alt_db_navframe.html');
                $this->doc->showFlashMessages = FALSE;
@@ -195,7 +195,7 @@ class PageTreeNavigationController {
                        $flashText = '
                                <a href="' . htmlspecialchars(GeneralUtility::linkThisScript(array('setTempDBmount' => 0))) . '">' . $GLOBALS['LANG']->sl('LLL:EXT:lang/locallang_core.xlf:labels.temporaryDBmount', TRUE) . '</a>              <br />' . $GLOBALS['LANG']->sl('LLL:EXT:lang/locallang_core.xlf:labels.path', TRUE) . ': <span title="' . htmlspecialchars($this->active_tempMountPoint['_thePathFull']) . '">' . htmlspecialchars(GeneralUtility::fixed_lgd_cs($this->active_tempMountPoint['_thePath'], -50)) . '</span>
                        ';
-                       $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $flashText, '', \TYPO3\CMS\Core\Messaging\FlashMessage::INFO);
+                       $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, $flashText, '', \TYPO3\CMS\Core\Messaging\FlashMessage::INFO);
                        $this->content .= $flashMessage->render();
                }
                // Outputting page tree:
index 0bca4d4..2e49ca0 100644 (file)
@@ -148,7 +148,7 @@ class SimpleDataHandlerController {
                $this->uPT = GeneralUtility::_GP('uPT');
                $this->generalComment = GeneralUtility::_GP('generalComment');
                // Creating TCEmain object
-               $this->tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+               $this->tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                $this->tce->stripslashes_values = 0;
                $this->tce->generalComment = $this->generalComment;
                // Configuring based on user prefs.
@@ -180,7 +180,7 @@ class SimpleDataHandlerController {
         */
        public function initClipboard() {
                if (is_array($this->CB)) {
-                       $clipObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Clipboard\\Clipboard');
+                       $clipObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Clipboard\Clipboard::class);
                        $clipObj->initializeClipboard();
                        if ($this->CB['paste']) {
                                $clipObj->setCurrentPad($this->CB['pad']);
index ba08a46..6b77c82 100644 (file)
@@ -144,13 +144,13 @@ class AddController {
                if ($this->returnEditConf) {
                        if ($this->processDataFlag) {
                                // Preparing the data of the parent record...:
-                               $trData = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\DataPreprocessor');
+                               $trData = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\DataPreprocessor::class);
                                // 'new'
                                $trData->fetchRecord($this->P['table'], $this->P['uid'], '');
                                $current = reset($trData->regTableItems_data);
                                // If that record was found (should absolutely be...), then init TCEmain and set, prepend or append the record
                                if (is_array($current)) {
-                                       $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+                                       $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                                        $tce->stripslashes_values = 0;
                                        $data = array();
                                        $addEl = $this->table . '_' . $this->id;
@@ -159,7 +159,7 @@ class AddController {
                                        if ($this->P['flexFormPath']) {
                                                // Current value of flexform path:
                                                $currentFlexFormData = GeneralUtility::xml2array($current[$this->P['field']]);
-                                               $flexToolObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Configuration\\FlexForm\\FlexFormTools');
+                                               $flexToolObj = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class);
                                                $curValueOfFlexform = $flexToolObj->getArrayValueByPath($this->P['flexFormPath'], $currentFlexFormData);
                                                $insertValue = '';
                                                switch ((string)$this->P['params']['setValue']) {
index b22f9df..0de8ac0 100644 (file)
@@ -156,7 +156,7 @@ class ColorpickerController {
                        }
                }
                // Initialize document object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
                        function checkReference() {     //
index eb3a597..e82994f 100644 (file)
@@ -87,7 +87,7 @@ class EditController {
                                $prependName = 1;
                                $params = '';
                                // Selecting selected values into an array:
-                               $dbAnalysis = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
+                               $dbAnalysis = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\RelationHandler::class);
                                $dbAnalysis->start($this->P['currentSelectedValues'], $allowedTables);
                                $value = $dbAnalysis->getValueArray($prependName);
                                // Traverse that array and make parameters for alt_doc.php:
index eb29fae..8527fbf 100644 (file)
@@ -183,7 +183,7 @@ class FormsController {
                // Setting options:
                $this->xmlStorage = $this->P['params']['xmlOutput'];
                // Document template object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/wizard_forms.html');
                // Setting form tag:
@@ -310,7 +310,7 @@ class FormsController {
                        // If a save button has been pressed, then save the new field content:
                        if ($_POST['savedok_x'] || $_POST['saveandclosedok_x']) {
                                // Make TCEmain object:
-                               $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+                               $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                                $tce->stripslashes_values = 0;
                                // Put content into the data array:
                                $data = array();
index 593631f..481e501 100644 (file)
@@ -83,7 +83,7 @@ class RteController {
                // "Module name":
                $this->MCONF['name'] = 'wizard_rte';
                // Starting the document template object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/wizard_rte.html');
                // Need to NOT have the page wrapped in DIV since if we do that we destroy
@@ -128,7 +128,7 @@ class RteController {
                                $this->doc->JScode = $this->doc->wrapScriptTags(BackendUtility::viewOnClick($rawRec['pid'], '', BackendUtility::BEgetRootLine($rawRec['pid'])));
                        }
                        // Initialize TCeforms - for rendering the field:
-                       $tceforms = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine');
+                       $tceforms = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\FormEngine::class);
                        // Init...
                        $tceforms->initDefaultBEMode();
                        // SPECIAL: Disables all wizards - we are NOT going to need them.
@@ -140,7 +140,7 @@ class RteController {
                                $RTEobj->RTEdivStyle = 'position:relative; left:0px; top:0px; height:100%; width:100%; border:solid 0px;';
                        }
                        // Fetching content of record:
-                       $trData = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\DataPreprocessor');
+                       $trData = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\DataPreprocessor::class);
                        $trData->lockRecords = 1;
                        $trData->fetchRecord($this->P['table'], $this->P['uid'], '');
                        // Getting the processed record content out:
index 68fea2e..fc6207f 100644 (file)
@@ -125,7 +125,7 @@ class TableController {
                // Textareas or input fields:
                $this->inputStyle = isset($this->TABLECFG['textFields']) ? $this->TABLECFG['textFields'] : 1;
                // Document template object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/wizard_table.html');
                // Setting form tag:
@@ -259,7 +259,7 @@ class TableController {
                        // If a save button has been pressed, then save the new field content:
                        if ($_POST['savedok_x'] || $_POST['saveandclosedok_x']) {
                                // Make TCEmain object:
-                               $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+                               $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                                $tce->stripslashes_values = 0;
                                // Put content into the data array:
                                $data = array();
index e452862..b839b7e 100644 (file)
@@ -34,7 +34,7 @@ class BackendModuleRepository implements \TYPO3\CMS\Core\SingletonInterface {
         * Constructs the module menu and gets the Singleton instance of the menu
         */
        public function __construct() {
-               $this->moduleStorage = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleStorage');
+               $this->moduleStorage = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleStorage::class);
 
                $rawData = $this->getRawModuleMenuData();
 
@@ -139,7 +139,7 @@ class BackendModuleRepository implements \TYPO3\CMS\Core\SingletonInterface {
         */
        protected function createEntryFromRawData(array $module) {
                /** @var $entry \TYPO3\CMS\Backend\Domain\Model\Module\BackendModule */
-               $entry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Domain\\Model\\Module\\BackendModule');
+               $entry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Domain\Model\Module\BackendModule::class);
                if (!empty($module['name']) && is_string($module['name'])) {
                        $entry->setName($module['name']);
                }
@@ -221,7 +221,7 @@ class BackendModuleRepository implements \TYPO3\CMS\Core\SingletonInterface {
         */
        public function getRawModuleMenuData() {
                // Loads the backend modules available for the logged in user.
-               $moduleLoader = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+               $moduleLoader = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                $moduleLoader->observeWorkspaces = TRUE;
                $moduleLoader->load($GLOBALS['TBE_MODULES']);
                $loadedModules = $moduleLoader->modules;
index 7a70d23..be471cb 100644 (file)
@@ -333,7 +333,7 @@ class DataPreprocessor {
                                $dataAcc = array();
                                // Now, load the files into the $dataAcc array, whether stored by MM or as a list of filenames:
                                if ($fieldConfig['config']['MM']) {
-                                       $loadDB = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
+                                       $loadDB = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\RelationHandler::class);
                                        $loadDB->start('', 'files', $fieldConfig['config']['MM'], $row['uid']);
                                        // Setting dummy startup
                                        foreach ($loadDB->itemArray as $value) {
@@ -353,7 +353,7 @@ class DataPreprocessor {
                                $data = implode(',', $dataAcc);
                                break;
                        case 'db':
-                               $loadDB = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
+                               $loadDB = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\RelationHandler::class);
                                /** @var $loadDB \TYPO3\CMS\Core\Database\RelationHandler */
                                $loadDB->start($data, $fieldConfig['config']['allowed'], $fieldConfig['config']['MM'], $row['uid'], $table, $fieldConfig['config']);
                                $loadDB->getFromDB();
@@ -448,13 +448,13 @@ class DataPreprocessor {
                        $dataStructArray = BackendUtility::getFlexFormDS($fieldConfig['config'], $row, $table, $field);
                        // Manipulate Flexform DS via TSConfig and group access lists
                        if (is_array($dataStructArray)) {
-                               $flexFormHelper = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FlexFormsHelper');
+                               $flexFormHelper = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\FlexFormsHelper::class);
                                $dataStructArray = $flexFormHelper->modifyFlexFormDS($dataStructArray, $table, $field, $row, $fieldConfig);
                                unset($flexFormHelper);
                        }
                        if (is_array($dataStructArray)) {
                                $currentValueArray['data'] = $this->renderRecord_flexProc_procInData($currentValueArray['data'], $dataStructArray, array($data, $fieldConfig, $TSconfig, $table, $row, $field));
-                               $flexObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Configuration\\FlexForm\\FlexFormTools');
+                               $flexObj = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class);
                                $data = $flexObj->flexArray2Xml($currentValueArray, TRUE);
                        }
                }
@@ -481,7 +481,7 @@ class DataPreprocessor {
                                if ($eFile['loadFromFileField'] && $totalRecordContent[$eFile['loadFromFileField']]) {
                                        // Read the external file, and insert the content between the ###TYPO3_STATICFILE_EDIT### markers:
                                        $SW_fileContent = GeneralUtility::getUrl($eFile['editFile']);
-                                       $parseHTML = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Html\\RteHtmlParser');
+                                       $parseHTML = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Html\RteHtmlParser::class);
                                        $parseHTML->init('', '');
                                        $totalRecordContent[$vconf['field']] = $parseHTML->getSubpart($SW_fileContent, $eFile['markerField'] && trim($totalRecordContent[$eFile['markerField']]) ? trim($totalRecordContent[$eFile['markerField']]) : '###TYPO3_STATICFILE_EDIT###');
                                }
@@ -704,7 +704,7 @@ class DataPreprocessor {
 
                        case 'modListUser':
                                if (!$this->loadModules) {
-                                       $this->loadModules = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+                                       $this->loadModules = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                                        $this->loadModules->load($GLOBALS['TBE_MODULES']);
                                }
                                $modList = $specialKey == 'modListUser' ? $this->loadModules->modListUser : $this->loadModules->modListGroup;
@@ -805,7 +805,7 @@ class DataPreprocessor {
                if (empty($fieldConfig['config']['MM'])) {
                        $recordId = $this->getLiveDefaultId($table, $row['uid']);
                }
-               $loadDB = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
+               $loadDB = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\RelationHandler::class);
                $loadDB->registerNonTableValues = $fieldConfig['config']['allowNonIdValues'] ? 1 : 0;
                $loadDB->start(implode(',', $elements), $fieldConfig['config']['foreign_table'] . ',' . $fieldConfig['config']['neg_foreign_table'], $fieldConfig['config']['MM'], $recordId, $table, $fieldConfig['config']);
                $idList = $loadDB->convertPosNeg($loadDB->getValueArray(), $fieldConfig['config']['foreign_table'], $fieldConfig['config']['neg_foreign_table']);
index af32030..742b565 100644 (file)
@@ -38,7 +38,7 @@ class FlexElement extends AbstractFormElement {
                $item = '';
                // Manipulate Flexform DS via TSConfig and group access lists
                if (is_array($dataStructArray)) {
-                       $flexFormHelper = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FlexFormsHelper');
+                       $flexFormHelper = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\FlexFormsHelper::class);
                        $dataStructArray = $flexFormHelper->modifyFlexFormDS($dataStructArray, $table, $field, $row, $additionalInformation['fieldConf']);
                        unset($flexFormHelper);
                }
@@ -104,7 +104,7 @@ class FlexElement extends AbstractFormElement {
                        }
 
                        /** @var $elementConditionMatcher \TYPO3\CMS\Backend\Form\ElementConditionMatcher */
-                       $elementConditionMatcher = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\ElementConditionMatcher');
+                       $elementConditionMatcher = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\ElementConditionMatcher::class);
 
                        foreach ($rotateLang as $lKey) {
                                if (!$langChildren && !$langDisabled) {
@@ -409,7 +409,7 @@ class FlexElement extends AbstractFormElement {
                                                $tRows = array();
 
                                                /** @var $elementConditionMatcher \TYPO3\CMS\Backend\Form\ElementConditionMatcher */
-                                               $elementConditionMatcher = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\ElementConditionMatcher');
+                                               $elementConditionMatcher = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\ElementConditionMatcher::class);
 
                                                foreach ($rotateLang as $vDEFkey) {
                                                        $vDEFkey = 'v' . $vDEFkey;
index 2aa0dbf..5c44931 100644 (file)
@@ -154,7 +154,7 @@ class GroupElement extends AbstractFormElement {
                                                                        htmlspecialchars($message), '', FlashMessage::ERROR, TRUE
                                                                );
                                                                /** @var $flashMessageService \TYPO3\CMS\Core\Messaging\FlashMessageService */
-                                                               $flashMessageService = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessageService');
+                                                               $flashMessageService = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessageService::class);
                                                                $defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
                                                                $defaultFlashMessageQueue->enqueue($flashMessage);
 
index b906612..9a506df 100644 (file)
@@ -762,7 +762,7 @@ class InlineElement {
                                $comboRecord = $this->getNewRecord($this->inlineFirstPid, $comboConfig['foreign_table']);
                                $isNewRecord = TRUE;
                        }
-                       $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:warning.inline_use_combination'), '', FlashMessage::WARNING);
+                       $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:warning.inline_use_combination'), '', FlashMessage::WARNING);
                        $out = $flashMessage->render();
                        // Get the TCEforms interpretation of the TCA of the child table
                        $out .= $this->renderMainFields($comboConfig['foreign_table'], $comboRecord);
@@ -1105,10 +1105,10 @@ class InlineElement {
                // CLEANSE SETTINGS
                $GLOBALS['SOBE']->MOD_SETTINGS = BackendUtility::getModuleData($GLOBALS['SOBE']->MOD_MENU, GeneralUtility::_GP('SET'), $GLOBALS['SOBE']->MCONF['name']);
                // Create an instance of the document template object
-               $GLOBALS['SOBE']->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $GLOBALS['SOBE']->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $GLOBALS['SOBE']->doc->backPath = $GLOBALS['BACK_PATH'];
                // Initialize TCEforms (rendering the forms)
-               $GLOBALS['SOBE']->tceforms = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine');
+               $GLOBALS['SOBE']->tceforms = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\FormEngine::class);
                $GLOBALS['SOBE']->tceforms->inline = $this;
                $GLOBALS['SOBE']->tceforms->RTEcounter = (int)array_shift($ajaxArguments);
                $GLOBALS['SOBE']->tceforms->initDefaultBEMode();
@@ -1118,7 +1118,7 @@ class InlineElement {
                $GLOBALS['SOBE']->tceforms->enableTabMenu = TRUE;
                // Clipboard is initialized:
                // Start clipboard
-               $GLOBALS['SOBE']->tceforms->clipObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Clipboard\\Clipboard');
+               $GLOBALS['SOBE']->tceforms->clipObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Clipboard\Clipboard::class);
                // Initialize - reads the clipboard content from the user session
                $GLOBALS['SOBE']->tceforms->clipObj->initializeClipboard();
        }
@@ -1290,7 +1290,7 @@ class InlineElement {
                        $cmd = array();
                        $cmd[$parent['table']][$parent['uid']]['inlineLocalizeSynchronize'] = $parent['field'] . ',' . $type;
                        /** @var $tce \TYPO3\CMS\Core\DataHandling\DataHandler */
-                       $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+                       $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                        $tce->stripslashes_values = FALSE;
                        $tce->start(array(), $cmd);
                        $tce->process_cmdmap();
@@ -1482,7 +1482,7 @@ class InlineElement {
                                                $flexFormParts = $this->extractFlexFormParts($PA['itemFormElName']);
                                                $flexData = GeneralUtility::xml2array($fieldValue);
                                                /** @var  $flexFormTools  \TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools */
-                                               $flexFormTools = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Configuration\\FlexForm\\FlexFormTools');
+                                               $flexFormTools = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class);
                                                $flexFormFieldValue = $flexFormTools->getArrayValueByPath($flexFormParts, $flexData);
 
                                                if ($flexFormFieldValue !== NULL) {
@@ -1746,7 +1746,7 @@ class InlineElement {
                        }
                }
                /** @var $trData \TYPO3\CMS\Backend\Form\DataPreprocessor */
-               $trData = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\DataPreprocessor');
+               $trData = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\DataPreprocessor::class);
                $trData->addRawData = TRUE;
                $trData->lockRecords = 1;
                $trData->disableRTE = $GLOBALS['SOBE']->MOD_SETTINGS['disableRTE'];
@@ -2514,7 +2514,7 @@ class InlineElement {
                $headDataRaw = $this->fObj->JStop() . $this->getJavaScriptAndStyleSheetsOfPageRenderer();
                if ($headDataRaw) {
                        // Create instance of the HTML parser:
-                       $parseObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Html\\HtmlParser');
+                       $parseObj = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Html\HtmlParser::class);
                        // Removes script wraps:
                        $headDataRaw = str_replace(array('/*<![CDATA[*/', '/*]]>*/'), '', $headDataRaw);
                        // Removes leading spaces of a multiline string:
index 6321e7c..50d5b3c 100644 (file)
@@ -63,7 +63,7 @@ class SelectElement extends AbstractFormElement {
                        $item = $this->getSingleField_typeSelect_singlebox($table, $field, $row, $additionalInformation, $config, $selItems, $nMV_label);
                } elseif ($config['renderMode'] === 'tree') {
                        // Tree renderMode
-                       $treeClass = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\TreeElement', $this->formEngine);
+                       $treeClass = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\TreeElement::class, $this->formEngine);
                        $item = $treeClass->renderField($table, $field, $row, $additionalInformation, $config, $selItems, $nMV_label);
                        // Register the required number of elements
                        $minitems = MathUtility::forceIntegerInRange($config['minitems'], 0);
index ab1ea5c..77d908e 100644 (file)
@@ -58,8 +58,8 @@ class TreeElement extends AbstractFormElement {
                $treeDataProvider->setSelectedList(implode(',', $selectedNodes));
                $treeDataProvider->setItemWhiteList($allowedUids);
                $treeDataProvider->initializeTreeData();
-               $treeRenderer = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Tree\\TableConfiguration\\ExtJsArrayTreeRenderer');
-               $tree = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Tree\\TableConfiguration\\TableConfigurationTree');
+               $treeRenderer = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Tree\TableConfiguration\ExtJsArrayTreeRenderer::class);
+               $tree = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Tree\TableConfiguration\TableConfigurationTree::class);
                $tree->setDataProvider($treeDataProvider);
                $tree->setNodeRenderer($treeRenderer);
                $treeData = $tree->render();
index 3ccdddf..b823245 100644 (file)
@@ -36,7 +36,7 @@ class ValueSlider {
                $value = $params['row'][$field];
                // If Slider is used in a flexform
                if (!empty($params['flexFormPath'])) {
-                       $flexFormTools = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Configuration\\FlexForm\\FlexFormTools');
+                       $flexFormTools = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class);
                        $flexFormValue = $flexFormTools->getArrayValueByPath($params['flexFormPath'], GeneralUtility::xml2array($value));
                        if ($flexFormValue !== NULL) {
                                $value = $flexFormValue;
index af65396..2f94589 100644 (file)
@@ -349,7 +349,7 @@ class FormDataTraverser {
         */
        protected function getRecordRow($uid) {
                /** @var \TYPO3\CMS\Backend\Form\DataPreprocessor $dataPreprocessor */
-               $dataPreprocessor = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\DataPreprocessor');
+               $dataPreprocessor = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\DataPreprocessor::class);
                $dataPreprocessor->fetchRecord($this->currentTable, $uid, '');
                return reset($dataPreprocessor->regTableItems_data);
        }
index 05d54db..e4e51af 100644 (file)
@@ -669,11 +669,11 @@ class FormEngine {
                );
                // Create instance of InlineElement only if this a non-IRRE-AJAX call:
                if (!isset($GLOBALS['ajaxID']) || strpos($GLOBALS['ajaxID'], 'TYPO3\\CMS\\Backend\\Form\\Element\\InlineElement::') !== 0) {
-                       $this->inline = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\InlineElement');
+                       $this->inline = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\InlineElement::class);
                }
                // Create instance of \TYPO3\CMS\Backend\Form\Element\SuggestElement only if this a non-Suggest-AJAX call:
                if (!isset($GLOBALS['ajaxID']) || strpos($GLOBALS['ajaxID'], 'TYPO3\\CMS\\Backend\\Form\\Element\\SuggestElement::') !== 0) {
-                       $this->suggest = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\SuggestElement');
+                       $this->suggest = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\SuggestElement::class);
                }
                // Prepare user defined objects (if any) for hooks which extend this function:
                $this->hookObjectsMainFields = array();
@@ -1055,7 +1055,7 @@ class FormEngine {
                $displayConditionResult = TRUE;
                if (is_array($PA['fieldConf']) && $PA['fieldConf']['displayCond'] && is_array($row)) {
                        /** @var $elementConditionMatcher \TYPO3\CMS\Backend\Form\ElementConditionMatcher */
-                       $elementConditionMatcher = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\ElementConditionMatcher');
+                       $elementConditionMatcher = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\ElementConditionMatcher::class);
                        $displayConditionResult = $elementConditionMatcher->match($PA['fieldConf']['displayCond'], $row);
                }
                // Check if this field is configured and editable (according to excludefields + other configuration)
@@ -1296,7 +1296,7 @@ class FormEngine {
         */
        public function getSingleField_typeInput($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\InputElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\InputElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -1369,7 +1369,7 @@ class FormEngine {
         */
        public function getSingleField_typeText($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\TextElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\TextElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -1386,7 +1386,7 @@ class FormEngine {
         */
        public function getSingleField_typeCheck($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\CheckboxElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\CheckboxElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -1403,7 +1403,7 @@ class FormEngine {
         */
        public function getSingleField_typeRadio($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\RadioElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\RadioElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -1421,7 +1421,7 @@ class FormEngine {
         */
        public function getSingleField_typeSelect($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\SelectElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\SelectElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -1438,7 +1438,7 @@ class FormEngine {
         */
        public function getSingleField_typeGroup($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\GroupElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\GroupElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -1455,7 +1455,7 @@ class FormEngine {
         */
        public function getSingleField_typeNone($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\NoneElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\NoneElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -1524,7 +1524,7 @@ class FormEngine {
         */
        public function getSingleField_typeFlex($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\FlexElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\FlexElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -1590,7 +1590,7 @@ class FormEngine {
         */
        public function getSingleField_typeUnknown($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\UnknownElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\UnknownElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -1606,7 +1606,7 @@ class FormEngine {
         */
        public function getSingleField_typeUser($table, $field, $row, &$PA) {
                GeneralUtility::logDeprecatedFunction();
-               return $item = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\UserElement', $this)
+               return $item = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\UserElement::class, $this)
                        ->render($table, $field, $row, $PA);
        }
 
@@ -2077,7 +2077,7 @@ class FormEngine {
                        $prLang = $this->getAdditionalPreviewLanguages();
                        foreach ($prLang as $prL) {
                                /** @var $t8Tools \TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider */
-                               $t8Tools = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TranslationConfigurationProvider');
+                               $t8Tools = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::class);
                                $tInfo = $t8Tools->translationInfo($lookUpTable, (int)$rec[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']], $prL['uid']);
                                if (is_array($tInfo['translations']) && is_array($tInfo['translations'][$prL['uid']])) {
                                        $this->additionalPreviewLanguageData[$table . ':' . $rec['uid']][$prL['uid']] = BackendUtility::getRecordWSOL($table, (int)$tInfo['translations'][$prL['uid']]['uid']);
@@ -2171,7 +2171,7 @@ class FormEngine {
                        if (isset($dLVal['old'][$field])) {
                                if ((string)$dLVal['old'][$field] !== (string)$dLVal['new'][$field]) {
                                        // Create diff-result:
-                                       $t3lib_diff_Obj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Utility\\DiffUtility');
+                                       $t3lib_diff_Obj = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Utility\DiffUtility::class);
                                        $diffres = $t3lib_diff_Obj->makeDiffDisplay(
                                                BackendUtility::getProcessedValue($table, $field, $dLVal['old'][$field], 0, 1),
                                                BackendUtility::getProcessedValue($table, $field, $dLVal['new'][$field], 0, 1)
@@ -2199,7 +2199,7 @@ class FormEngine {
                        && (string)$vArray[$vDEFkey . '.vDEFbase'] !== (string)$vArray['vDEF']
                ) {
                        // Create diff-result:
-                       $t3lib_diff_Obj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Utility\\DiffUtility');
+                       $t3lib_diff_Obj = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Utility\DiffUtility::class);
                        $diffres = $t3lib_diff_Obj->makeDiffDisplay($vArray[$vDEFkey . '.vDEFbase'], $vArray['vDEF']);
                        $item = '<div class="typo3-TCEforms-diffBox">' . '<div class="typo3-TCEforms-diffBox-header">'
                                . htmlspecialchars($this->getLL('l_changeInOrig')) . ':</div>' . $diffres . '</div>';
@@ -2664,7 +2664,7 @@ class FormEngine {
                                                                                        $params['iTitle'] = $iTitle;
                                                                                        $params['wConf'] = $wConf;
                                                                                        $params['row'] = $row;
-                                                                                       $wizard = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\Element\\ValueSlider');
+                                                                                       $wizard = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\Element\ValueSlider::class);
                                                                                        $outArr[] = call_user_func_array(array(&$wizard, 'renderWizard'), array(&$params, &$this));
                                                                                        break;
                                                                        }
@@ -3376,7 +3376,7 @@ class FormEngine {
                                case 'modListGroup':
 
                                case 'modListUser':
-                                       $loadModules = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+                                       $loadModules = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                                        $loadModules->load($GLOBALS['TBE_MODULES']);
                                        $modList = $fieldValue['config']['special'] == 'modListUser' ? $loadModules->modListUser : $loadModules->modListGroup;
                                        if (is_array($modList)) {
@@ -3453,9 +3453,9 @@ class FormEngine {
                        $msg .= $this->sL('LLL:EXT:lang/locallang_core.xlf:error.database_schema_mismatch');
                        $msgTitle = $this->sL('LLL:EXT:lang/locallang_core.xlf:error.database_schema_mismatch_title');
                        /** @var $flashMessage FlashMessage */
-                       $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $msg, $msgTitle, FlashMessage::ERROR, TRUE);
+                       $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, $msg, $msgTitle, FlashMessage::ERROR, TRUE);
                        /** @var $flashMessageService FlashMessageService */
-                       $flashMessageService = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessageService');
+                       $flashMessageService = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessageService::class);
                        /** @var $defaultFlashMessageQueue FlashMessageQueue */
                        $defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
                        $defaultFlashMessageQueue->enqueue($flashMessage);
@@ -4395,7 +4395,7 @@ class FormEngine {
                        BackendUtility::fixVersioningPid($table, $row);
                        list($tscPID) = $this->getTSCpid($table, $row['uid'], $row['pid']);
                        /** @var $t8Tools \TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider */
-                       $t8Tools = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TranslationConfigurationProvider');
+                       $t8Tools = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::class);
                        $this->cachedLanguageFlag[$mainKey] = $t8Tools->getSystemLanguages($tscPID, $this->backPath);
                }
                // Convert sys_language_uid to sys_language_uid if input was in fact a string (ISO code expected then)
@@ -4633,7 +4633,7 @@ class FormEngine {
                if (substr($value, 0, 6) === '__row|') {
                        /** @var \TYPO3\CMS\Backend\Form\FormDataTraverser $traverser */
                        $traverseFields = GeneralUtility::trimExplode('|', substr($value, 6));
-                       $traverser = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormDataTraverser', $this);
+                       $traverser = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\FormDataTraverser::class, $this);
                        $value = $traverser->getTraversedFieldValue($traverseFields, $table, $row);
                }
 
index ad43eb9..5b5b8b0 100644 (file)
@@ -122,7 +122,7 @@ class FrontendFormEngine extends \TYPO3\CMS\Backend\Form\FormEngine {
         * @return void
         */
        public function initializeTemplateContainer() {
-               $GLOBALS['TBE_TEMPLATE'] = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\FrontendDocumentTemplate');
+               $GLOBALS['TBE_TEMPLATE'] = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\FrontendDocumentTemplate::class);
                $GLOBALS['TBE_TEMPLATE']->getPageRenderer()->addInlineSetting('', 'PATH_typo3', GeneralUtility::dirname(GeneralUtility::getIndpEnv('SCRIPT_NAME')) . '/' . TYPO3_mainDir);
                $GLOBALS['SOBE'] = new \stdClass();
                $GLOBALS['SOBE']->doc = $GLOBALS['TBE_TEMPLATE'];
index 8e912a3..0475928 100644 (file)
@@ -100,7 +100,7 @@ class FrontendBackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\B
                if (isset($this->extAdminConfig['enable.'])) {
                        foreach ($this->extAdminConfig['enable.'] as $value) {
                                if ($value) {
-                                       $this->adminPanel = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\View\\AdminPanelView');
+                                       $this->adminPanel = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\View\AdminPanelView::class);
                                        $this->extAdmEnabled = TRUE;
                                        break;
                                }
@@ -261,7 +261,7 @@ class FrontendBackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\B
         */
        public function extGetNumberOfCachedPages($pageId) {
                /** @var FrontendInterface $pageCache */
-               $pageCache = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager')->getCache('cache_pages');
+               $pageCache = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Cache\CacheManager::class)->getCache('cache_pages');
                $pageCacheEntries = $pageCache->getByTag('pageId_' . (int)$pageId);
                return count($pageCacheEntries);
        }
index 75e39b7..4465198 100644 (file)
@@ -216,7 +216,7 @@ class RecordHistory {
                }
                // Writes the data:
                if ($cmdmapArray) {
-                       $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+                       $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                        $tce->stripslashes_values = 0;
                        $tce->debug = 0;
                        $tce->dontProcessTransformations = 1;
@@ -251,7 +251,7 @@ class RecordHistory {
                // Removing fields:
                $data = $this->removeFilefields($rollbackData[0], $data);
                // Writes the data:
-               $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+               $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                $tce->stripslashes_values = 0;
                $tce->debug = 0;
                $tce->dontProcessTransformations = 1;
@@ -456,7 +456,7 @@ class RecordHistory {
                        $theCode .= '<br />' . $this->linkPage(IconUtility::getSpriteIcon('actions-move-to-bottom', array('title' => $GLOBALS['LANG']->getLL('fullView', TRUE))), array('diff' => ''));
                }
                // Add message about the difference view.
-               $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $GLOBALS['LANG']->getLL('differenceMsg'), '', \TYPO3\CMS\Core\Messaging\FlashMessage::INFO);
+               $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, $GLOBALS['LANG']->getLL('differenceMsg'), '', \TYPO3\CMS\Core\Messaging\FlashMessage::INFO);
                $theCode .= '<br /><br />' . $flashMessage->render() . '<br />';
                // Add the whole content as a module section:
                return $GLOBALS['SOBE']->doc->section($GLOBALS['LANG']->getLL('changes'), $theCode, FALSE, TRUE);
@@ -517,7 +517,7 @@ class RecordHistory {
        public function renderDiff($entry, $table, $rollbackUid = 0) {
                $lines = array();
                if (is_array($entry['newRecord'])) {
-                       $t3lib_diff_Obj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Utility\\DiffUtility');
+                       $t3lib_diff_Obj = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Utility\DiffUtility::class);
                        $fieldsToDisplay = array_keys($entry['newRecord']);
                        foreach ($fieldsToDisplay as $fN) {
                                if (is_array($GLOBALS['TCA'][$table]['columns'][$fN]) && $GLOBALS['TCA'][$table]['columns'][$fN]['config']['type'] != 'passthrough') {
index 503467a..f091e0e 100644 (file)
@@ -73,7 +73,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
  * times inclusion sections in their index.php scripts. For example (from web_func):
  *
  * Make instance:
- * $SOBE = GeneralUtility::makeInstance('TYPO3\\CMS\\Func\\Controller\\PageFunctionsController');
+ * $SOBE = GeneralUtility::makeInstance(\TYPO3\CMS\Func\Controller\PageFunctionsController::class);
  * $SOBE->init();
  *
  * Include files?
index 422cd01..51c4ccd 100644 (file)
@@ -44,7 +44,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
  * MAIN FUNCTION - HERE YOU CREATE THE MODULE CONTENT IN $this->content
  * public function main() {
  *     TYPICALLY THE INTERNAL VAR, $this->doc is instantiated like this:
- *     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+ *     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
  *     TYPICALLY THE INTERNAL VAR, $this->backPath is set like this:
  *     $this->backPath = $this->doc->backPath = $GLOBALS['BACK_PATH'];
  *     ... AND OF COURSE A LOT OF OTHER THINGS GOES ON - LIKE PUTTING CONTENT INTO $this->content
@@ -56,7 +56,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
  * }
  *
  * MAKE INSTANCE OF THE SCRIPT CLASS AND CALL init()
- * $SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Vendor\\Prototype\\Controller\\PrototypeController');
+ * $SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\Vendor\Prototype\Controller\PrototypeController::class);
  * $SOBE->init();
  *
  * AFTER INIT THE INTERNAL ARRAY ->include_once MAY HOLD FILENAMES TO INCLUDE
index b4f0317..e78629f 100644 (file)
@@ -37,8 +37,8 @@ class ModuleController {
         */
        public function __construct() {
                \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
-               $this->moduleMenu = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleStorage');
-               $this->moduleMenuRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Domain\\Repository\\Module\\BackendModuleRepository');
+               $this->moduleMenu = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleStorage::class);
+               $this->moduleMenuRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Domain\Repository\Module\BackendModuleRepository::class);
        }
 
        /**
@@ -51,7 +51,7 @@ class ModuleController {
        public function createModuleMenu() {
                if (count($this->moduleMenu->getEntries()) === 0) {
                        /** @var $moduleMenu \TYPO3\CMS\Backend\View\ModuleMenuView */
-                       $moduleMenu = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\View\\ModuleMenuView');
+                       $moduleMenu = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\View\ModuleMenuView::class);
                        $rawData = $moduleMenu->getRawModuleData();
                        $this->convertRawModuleDataToModuleMenuObject($rawData);
                        $this->createMenuEntriesForTbeModulesExt();
@@ -86,7 +86,7 @@ class ModuleController {
         */
        protected function createEntryFromRawData(array $module) {
                /** @var $entry \TYPO3\CMS\Backend\Domain\Model\Module\BackendModule */
-               $entry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Domain\\Model\\Module\\BackendModule');
+               $entry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Domain\Model\Module\BackendModule::class);
                if (!empty($module['name']) && is_string($module['name'])) {
                        $entry->setName($module['name']);
                }
index f945196..8cedeaa 100644 (file)
@@ -23,7 +23,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
  * Load Backend Interface modules
  *
  * Typically instantiated like this:
- * $this->loadModules = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+ * $this->loadModules = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
  * $this->loadModules->load($TBE_MODULES);
  *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
index 4ba336e..a2a8632 100644 (file)
@@ -34,7 +34,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
  *
  * function main() {
  * reStore settings
- * $store = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\ModuleSettings');
+ * $store = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\ModuleSettings::class);
  * $store->init('tx_dam_select');
  * $store->setStoreList('tx_dam_select');
  * $store->processStoreControl();
index 0a4e547..19372d5 100644 (file)
@@ -424,7 +424,7 @@ abstract class AbstractRecordList {
         */
        protected function getTranslateTools() {
                if (!isset($this->translateTools)) {
-                       $this->translateTools = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TranslationConfigurationProvider');
+                       $this->translateTools = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::class);
                }
                return $this->translateTools;
        }
index bfc31e8..1dbf72b 100644 (file)
@@ -106,7 +106,7 @@ class AbstractRte {
                        // There must be a mode set for transformation
                        if ($p['mode']) {
                                // Initialize transformation:
-                               $parseHTML = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Html\\RteHtmlParser');
+                               $parseHTML = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Html\RteHtmlParser::class);
                                $parseHTML->init($table . ':' . $field, $pid);
                                $parseHTML->setRelPath($RTErelPath);
                                // Perform transformation:
index 31c3a0c..000c04a 100644 (file)
@@ -44,8 +44,8 @@ class LiveSearchDataProvider {
         * Initialize the live search
         */
        public function __construct() {
-               $this->liveSearch = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Search\\LiveSearch\\LiveSearch');
-               $this->queryParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Search\\LiveSearch\\QueryParser');
+               $this->liveSearch = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch::class);
+               $this->queryParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Search\LiveSearch\QueryParser::class);
        }
 
        /**
index 8ba0f36..e367773 100644 (file)
@@ -77,7 +77,7 @@ class LiveSearch {
         */
        public function __construct() {
                $this->userPermissions = $GLOBALS['BE_USER']->getPagePermsClause(1);
-               $this->queryParser = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Search\\LiveSearch\\QueryParser');
+               $this->queryParser = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Search\LiveSearch\QueryParser::class);
        }
 
        /**
@@ -436,7 +436,7 @@ class LiveSearch {
         */
        protected function getAvailablePageIds($id, $depth) {
                $idList = '';
-               $tree = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\View\\PageTreeView');
+               $tree = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\View\PageTreeView::class);
                $tree->init('AND ' . $this->userPermissions);
                $tree->makeHTML = 0;
                $tree->fieldArray = array('uid', 'php_tree_stop');
index 90118ad..4cc727c 100644 (file)
@@ -70,7 +70,7 @@ class CategoryPermissionsAspect {
 
                                // Create an empty tree node collection to receive the secured nodes.
                                /** @var TreeNodeCollection $securedTreeNodeCollection */
-                               $securedTreeNodeCollection = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\TreeNodeCollection');
+                               $securedTreeNodeCollection = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\TreeNodeCollection::class);
 
                                foreach ($categoryMountPoints as $categoryMountPoint) {
 
index 0077c30..b720fd2 100644 (file)
@@ -35,7 +35,7 @@ class SpriteBuildingHandler extends AbstractSpriteHandler {
         * @return void
         */
        public function generate() {
-               $this->generatorInstance = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Sprite\\SpriteGenerator', 'GeneratorHandler');
+               $this->generatorInstance = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Sprite\SpriteGenerator::class, 'GeneratorHandler');
                $this->generatorInstance
                        ->setOmitSpriteNameInIconName(TRUE)
                        ->setIncludeTimestampInCSS(TRUE)
index 455eb2b..970567f 100644 (file)
@@ -49,7 +49,7 @@ class SpriteManager {
                if (!static::isInitialized()) {
                        $cacheIdentifier = static::getCacheIdentifier();
                        /** @var $codeCache \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend */
-                       $codeCache = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager')->getCache('cache_core');
+                       $codeCache = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Cache\CacheManager::class)->getCache('cache_core');
                        if ($codeCache->has($cacheIdentifier)) {
                                $codeCache->requireOnce($cacheIdentifier);
                        } else {
@@ -106,7 +106,7 @@ class SpriteManager {
                $cacheFileContent = '$GLOBALS[\'TBE_STYLES\'][\'spriteIconApi\'][\'iconsAvailable\'] = ';
                $cacheFileContent .= var_export($iconNames, TRUE) . ';';
                /** @var $codeCache \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend */
-               GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager')->getCache('cache_core')->set(static::getCacheIdentifier(), $cacheFileContent);
+               GeneralUtility::makeInstance(\TYPO3\CMS\Core\Cache\CacheManager::class)->getCache('cache_core')->set(static::getCacheIdentifier(), $cacheFileContent);
        }
 
        /**
index b99faaa..15a4d57 100644 (file)
@@ -438,7 +438,7 @@ function jumpToUrl(URL) {
         */
        public function getPageRenderer() {
                if (!isset($this->pageRenderer)) {
-                       $this->pageRenderer = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Page\\PageRenderer');
+                       $this->pageRenderer = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
                        $this->pageRenderer->setLanguage($GLOBALS['LANG']->lang);
                        $this->pageRenderer->addCssLibrary($GLOBALS['BACK_PATH'] . 'contrib/normalize/normalize.css', 'stylesheet', 'all', '', TRUE, TRUE);
                        $this->pageRenderer->enableConcatenateFiles();
@@ -1705,7 +1705,7 @@ function jumpToUrl(URL) {
                                ExtensionManagementUtility::isLoaded('version') &&
                                !ExtensionManagementUtility::isLoaded('workspaces')
                ) {
-                       $versionGuiObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Version\\View\\VersionView');
+                       $versionGuiObj = GeneralUtility::makeInstance(\TYPO3\CMS\Version\View\VersionView::class);
                        return $versionGuiObj->getVersionSelector($id, $noAction);
                }
        }
@@ -1810,7 +1810,7 @@ function jumpToUrl(URL) {
         */
        public function getFlashMessages() {
                /** @var $flashMessageService \TYPO3\CMS\Core\Messaging\FlashMessageService */
-               $flashMessageService = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessageService');
+               $flashMessageService = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessageService::class);
                /** @var $defaultFlashMessageQueue \TYPO3\CMS\Core\Messaging\FlashMessageQueue */
                $defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
                $flashMessages = $defaultFlashMessageQueue->renderFlashMessages();
@@ -1956,7 +1956,7 @@ function jumpToUrl(URL) {
                $collapsedStyle = ($collapsedClass = '');
                if ($hasSave) {
                        /** @var $settings \TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider */
-                       $settings = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\User\\ExtDirect\\BackendUserSettingsDataProvider');
+                       $settings = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider::class);
                        $value = $settings->get($saveStatePointer . '.' . $id);
                        if ($value) {
                                $collapsedStyle = ' style="display: none"';
index e4635a0..9e14c89 100644 (file)
@@ -45,7 +45,7 @@ class LiveSearchToolbarItem implements \TYPO3\CMS\Backend\Toolbar\ToolbarItemHoo
        public function checkAccess() {
                $access = FALSE;
                // Loads the backend modules available for the logged in user.
-               $loadModules = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+               $loadModules = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                $loadModules->observeWorkspaces = TRUE;
                $loadModules->load($GLOBALS['TBE_MODULES']);
                // Live search is heavily dependent on the list module and only available when that module is.
index 5abe600..46066e9 100644 (file)
@@ -79,7 +79,7 @@ class ShortcutToolbarItem implements \TYPO3\CMS\Backend\Toolbar\ToolbarItemHookI
                if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) {
                        $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
                        // Needed to get the correct icons when reloading the menu after saving it
-                       $loadModules = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+                       $loadModules = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                        $loadModules->load($GLOBALS['TBE_MODULES']);
                }
                $this->backendReference = $backendReference;
index fb4f631..5b55cd4 100644 (file)
@@ -196,7 +196,7 @@ class Commands {
         */
        static protected function processTceCmdAndDataMap(array $cmd, array $data = array()) {
                /** @var $tce \TYPO3\CMS\Core\DataHandling\DataHandler */
-               $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+               $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                $tce->stripslashes_values = 0;
                $tce->start($data, $cmd);
                $tce->copyTree = MathUtility::forceIntegerInRange($GLOBALS['BE_USER']->uc['copyLevels'], 0, 100);
@@ -298,7 +298,7 @@ class Commands {
                        self::$titleLength = (int)$GLOBALS['BE_USER']->uc['titleLen'];
                }
                /** @var $subNode \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $subNode = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode');
+               $subNode = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class);
                $subNode->setRecord($record);
                $subNode->setCls($record['_CSSCLASS']);
                $subNode->setType('pages');
index 8d5682a..94edb2b 100644 (file)
@@ -92,7 +92,7 @@ class DataProvider extends \TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider {
         */
        public function getRoot() {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode');
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class);
                $node->setId('root');
                $node->setExpanded(TRUE);
                return $node;
@@ -108,7 +108,7 @@ class DataProvider extends \TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider {
         */
        public function getNodes(\TYPO3\CMS\Backend\Tree\TreeNode $node, $mountPoint = 0, $level = 0) {
                /** @var $nodeCollection \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection */
-               $nodeCollection = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNodeCollection');
+               $nodeCollection = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection::class);
                if ($level >= 99) {
                        return $nodeCollection;
                }
@@ -194,7 +194,7 @@ class DataProvider extends \TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider {
         */
        public function getFilteredNodes(\TYPO3\CMS\Backend\Tree\TreeNode $node, $searchFilter, $mountPoint = 0) {
                /** @var $nodeCollection \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection */
-               $nodeCollection = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNodeCollection');
+               $nodeCollection = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection::class);
                $records = $this->getSubpages(-1, $searchFilter);
                if (!is_array($records) || !count($records)) {
                        return $nodeCollection;
@@ -280,7 +280,7 @@ class DataProvider extends \TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider {
                                        $refNode->setLeaf(FALSE);
                                        $reference = $refNode->getChildNodes();
                                        if ($reference == NULL) {
-                                               $reference = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNodeCollection');
+                                               $reference = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection::class);
                                                $refNode->setChildNodes($reference);
                                        }
                                } else {
@@ -293,7 +293,7 @@ class DataProvider extends \TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider {
                                        }
                                        $refNode->setText($text, $refNode->getTextSourceField(), $refNode->getPrefix(), $refNode->getSuffix());
                                        /** @var $childCollection \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection */
-                                       $childCollection = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNodeCollection');
+                                       $childCollection = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection::class);
                                        if ($i + 1 >= $amountOfRootlineElements) {
                                                $childNodes = $this->getNodes($refNode, $mountPoint);
                                                foreach ($childNodes as $childNode) {
@@ -328,7 +328,7 @@ class DataProvider extends \TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider {
         */
        public function getTreeMounts($searchFilter = '') {
                /** @var $nodeCollection \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection */
-               $nodeCollection = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNodeCollection');
+               $nodeCollection = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection::class);
                $isTemporaryMountPoint = FALSE;
                $rootNodeIsVirtual = FALSE;
                $mountPoints = (int)$GLOBALS['BE_USER']->uc['pageTree_temporaryMountPoint'];
index 401e7ba..5981a91 100644 (file)
@@ -32,7 +32,7 @@ class ExtdirectTreeCommands {
         */
        public function visiblyNode($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                try {
                        Commands::visiblyNode($node);
                        $newNode = Commands::getNode($node->getId());
@@ -55,7 +55,7 @@ class ExtdirectTreeCommands {
         */
        public function disableNode($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                try {
                        Commands::disableNode($node);
                        $newNode = Commands::getNode($node->getId());
@@ -78,7 +78,7 @@ class ExtdirectTreeCommands {
         */
        public function deleteNode($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                try {
                        Commands::deleteNode($node);
                        $returnValue = array();
@@ -107,7 +107,7 @@ class ExtdirectTreeCommands {
         */
        public function restoreNode($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                try {
                        Commands::restoreNode($node, $destination);
                        $newNode = Commands::getNode($node->getId());
@@ -134,7 +134,7 @@ class ExtdirectTreeCommands {
                        return array();
                }
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                try {
                        Commands::updateNodeLabel($node, $updatedLabel);
                        $shortendedText = GeneralUtility::fixed_lgd_cs($updatedLabel, (int)$GLOBALS['BE_USER']->uc['titleLen']);
@@ -159,7 +159,7 @@ class ExtdirectTreeCommands {
         */
        static public function setTemporaryMountPoint($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                $GLOBALS['BE_USER']->uc['pageTree_temporaryMountPoint'] = $node->getId();
                $GLOBALS['BE_USER']->writeUC($GLOBALS['BE_USER']->uc);
                return Commands::getMountPointPath();
@@ -174,7 +174,7 @@ class ExtdirectTreeCommands {
         */
        public function moveNodeToFirstChildOfDestination($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                try {
                        Commands::moveNode($node, $destination);
                        $newNode = Commands::getNode($node->getId(), FALSE);
@@ -198,7 +198,7 @@ class ExtdirectTreeCommands {
         */
        public function moveNodeAfterDestination($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                try {
                        Commands::moveNode($node, -$destination);
                        $newNode = Commands::getNode($node->getId(), FALSE);
@@ -223,9 +223,9 @@ class ExtdirectTreeCommands {
         */
        public function copyNodeToFirstChildOfDestination($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                /** @var $dataProvider \TYPO3\CMS\Backend\Tree\Pagetree\DataProvider */
-               $dataProvider = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\DataProvider');
+               $dataProvider = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\DataProvider::class);
                try {
                        $newPageId = Commands::copyNode($node, $destination);
                        $newNode = Commands::getNode($newPageId);
@@ -250,9 +250,9 @@ class ExtdirectTreeCommands {
         */
        public function copyNodeAfterDestination($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                /** @var $dataProvider \TYPO3\CMS\Backend\Tree\Pagetree\DataProvider */
-               $dataProvider = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\DataProvider');
+               $dataProvider = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\DataProvider::class);
                try {
                        $newPageId = Commands::copyNode($node, -$destination);
                        $newNode = Commands::getNode($newPageId);
@@ -276,7 +276,7 @@ class ExtdirectTreeCommands {
         */
        public function insertNodeToFirstChildOfDestination($parentNodeData, $pageType) {
                /** @var $parentNode \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $parentNode = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$parentNodeData);
+               $parentNode = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$parentNodeData);
                try {
                        $newPageId = Commands::createNode($parentNode, $parentNode->getId(), $pageType);
                        $returnValue = Commands::getNode($newPageId)->toArray();
@@ -299,7 +299,7 @@ class ExtdirectTreeCommands {
         */
        public function insertNodeAfterDestination($parentNodeData, $destination, $pageType) {
                /** @var $parentNode \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $parentNode = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$parentNodeData);
+               $parentNode = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$parentNodeData);
                try {
                        $newPageId = Commands::createNode($parentNode, -$destination, $pageType);
                        $returnValue = Commands::getNode($newPageId)->toArray();
@@ -320,7 +320,7 @@ class ExtdirectTreeCommands {
         */
        static public function getViewLink($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                $javascriptLink = BackendUtility::viewOnClick($node->getId());
                preg_match('/window\\.open\\(\'([^\']+)\'/i', $javascriptLink, $match);
                return $match[1];
@@ -344,7 +344,7 @@ class ExtdirectTreeCommands {
                $mountPoints[] = (int)$GLOBALS['BE_USER']->uc['pageTree_temporaryMountPoint'];
                $mountPoints = array_unique($mountPoints);
                /** @var $userSettings \TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider */
-               $userSettings = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\User\\ExtDirect\\BackendUserSettingsDataProvider');
+               $userSettings = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\User\ExtDirect\BackendUserSettingsDataProvider::class);
                $state = $userSettings->get('BackendComponents.States.' . $stateId);
                $state->stateHash = (object) $state->stateHash;
                $rootline = BackendUtility::BEgetRootLine($nodeId, '', $GLOBALS['BE_USER']->workspace != 0);
index fc60c58..3a8676c 100644 (file)
@@ -38,7 +38,7 @@ class ExtdirectTreeDataProvider extends \TYPO3\CMS\Backend\Tree\AbstractExtJsTre
         */
        protected function initDataProvider() {
                /** @var $dataProvider \TYPO3\CMS\Backend\Tree\Pagetree\DataProvider */
-               $dataProvider = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\DataProvider');
+               $dataProvider = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\DataProvider::class);
                $this->setDataProvider($dataProvider);
        }
 
@@ -63,7 +63,7 @@ class ExtdirectTreeDataProvider extends \TYPO3\CMS\Backend\Tree\AbstractExtJsTre
        public function getNextTreeLevel($nodeId, $nodeData) {
                $this->initDataProvider();
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                if ($nodeId === 'root') {
                        $nodeCollection = $this->dataProvider->getTreeMounts();
                } else {
@@ -85,7 +85,7 @@ class ExtdirectTreeDataProvider extends \TYPO3\CMS\Backend\Tree\AbstractExtJsTre
                        return array();
                }
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
+               $node = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode::class, (array)$nodeData);
                $this->initDataProvider();
                if ($nodeId === 'root') {
                        $nodeCollection = $this->dataProvider->getTreeMounts($searchFilter);
@@ -139,7 +139,7 @@ class ExtdirectTreeDataProvider extends \TYPO3\CMS\Backend\Tree\AbstractExtJsTre
         */
        public function getIndicators() {
                /** @var $indicatorProvider \TYPO3\CMS\Backend\Tree\Pagetree\Indicator */
-               $indicatorProvider = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\Indicator');
+               $indicatorProvider = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\Pagetree\Indicator::class);
                $indicatorHtmlArr = $indicatorProvider->getAllIndicators();
                $indicator = array(
                        'html' => implode(' ', $indicatorHtmlArr),
index cbe6b26..c5aebe5 100644 (file)
@@ -613,7 +613,7 @@ class BackendUtility {
         */
        static public function getSystemLanguages() {
                /** @var TranslationConfigurationProvider $translationConfigurationProvider */
-               $translationConfigurationProvider = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TranslationConfigurationProvider');
+               $translationConfigurationProvider = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider::class);
                $languages = $translationConfigurationProvider->getSystemLanguages();
                $sysLanguages = array();
                foreach ($languages as $language) {
@@ -1129,7 +1129,7 @@ class BackendUtility {
         */
        static public function storeHash($hash, $data, $ident) {
                /** @var CacheManager $cacheManager */
-               $cacheManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager');
+               $cacheManager = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Cache\CacheManager::class);
                $cacheManager->getCache('cache_hash')->set($hash, $data, array('ident_' . $ident), 0);
        }
 
@@ -1144,7 +1144,7 @@ class BackendUtility {
         */
        static public function getHash($hash) {
                /** @var CacheManager $cacheManager */
-               $cacheManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager');
+               $cacheManager = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Cache\CacheManager::class);
                $cacheEntry = $cacheManager->getCache('cache_hash')->get($hash);
                $hashContent = NULL;
                if ($cacheEntry) {
@@ -1201,7 +1201,7 @@ class BackendUtility {
                        // Parsing the page TS-Config
                        $pageTS = implode(LF . '[GLOBAL]' . LF, $TSdataArray);
                        /* @var $parseObj \TYPO3\CMS\Backend\Configuration\TsConfigParser */
-                       $parseObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TsConfigParser');
+                       $parseObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Configuration\TsConfigParser::class);
                        $res = $parseObj->parseTSconfig($pageTS, 'PAGES', $id, $rootLine);
                        if ($res) {
                                $TSconfig = $res['TSconfig'];
@@ -1523,7 +1523,7 @@ class BackendUtility {
 
                $fileReferences = array();
                /** @var $relationHandler \TYPO3\CMS\Core\Database\RelationHandler */
-               $relationHandler = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
+               $relationHandler = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\RelationHandler::class);
                if ($workspaceId !== NULL) {
                        $relationHandler->setWorkspaceId($workspaceId);
                }
@@ -1616,7 +1616,7 @@ class BackendUtility {
                                                }
                                        } catch (ResourceDoesNotExistException $exception) {
                                                /** @var FlashMessage $flashMessage */
-                                               $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
+                                               $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class,
                                                        htmlspecialchars($exception->getMessage()),
                                                        static::getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:warning.file_missing', TRUE),
                                                        FlashMessage::ERROR
@@ -2116,7 +2116,7 @@ class BackendUtility {
                                                        $MMfield = join(',', $MMfields);
                                                }
                                                /** @var $dbGroup \TYPO3\CMS\Core\Database\RelationHandler */
-                                               $dbGroup = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
+                                               $dbGroup = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\RelationHandler::class);
                                                $dbGroup->start($value, $theColConf['foreign_table'], $theColConf['MM'], $uid, $table, $theColConf);
                                                $selectUids = $dbGroup->tableArray[$theColConf['foreign_table']];
                                                if (is_array($selectUids) && count($selectUids) > 0) {
@@ -2715,7 +2715,7 @@ class BackendUtility {
                }
 
                // Check a mount point needs to be previewed
-               $sys_page = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
+               $sys_page = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\Page\PageRepository::class);
                $sys_page->init(FALSE);
                $mountPointInfo = $sys_page->getMountPointInfo($pageUid);
 
@@ -2746,7 +2746,7 @@ class BackendUtility {
                if (count($rootLine) > 0) {
                        $urlParts = parse_url($domain);
                        /** @var PageRepository $sysPage */
-                       $sysPage = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
+                       $sysPage = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\Page\PageRepository::class);
                        $page = (array)$sysPage->getPage($pageId);
                        $protocol = 'http';
                        if ($page['url_scheme'] == HttpUtility::SCHEME_HTTPS || $page['url_scheme'] == 0 && GeneralUtility::getIndpEnv('TYPO3_SSL')) {
@@ -4283,7 +4283,7 @@ class BackendUtility {
         * @return \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
         */
        static protected function getSignalSlotDispatcher() {
-               return GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
+               return GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
        }
 
        /**
index cb246a0..1b0f5d9 100644 (file)
@@ -1059,7 +1059,7 @@ class IconUtility {
         * @return \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
         */
        static protected function getSignalSlotDispatcher() {
-               return GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
+               return GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
        }
 
 }
index 17db832..ab75bd9 100644 (file)
@@ -260,7 +260,7 @@ class BackendLayoutView implements \TYPO3\CMS\Core\SingletonInterface {
                $tsConfig = BackendUtility::getModTSconfig($id, 'TCEFORM.tt_content.colPos');
                $tcaConfig = $GLOBALS['TCA']['tt_content']['columns']['colPos']['config'];
                /** @var $tceForms \TYPO3\CMS\Backend\Form\FormEngine */
-               $tceForms = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine');
+               $tceForms = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Form\FormEngine::class);
                $tcaItems = $tcaConfig['items'];
                $tcaItems = $tceForms->addItems($tcaItems, $tsConfig['properties']['addItems.']);
                if (isset($tcaConfig['itemsProcFunc']) && $tcaConfig['itemsProcFunc']) {
@@ -303,9 +303,9 @@ class BackendLayoutView implements \TYPO3\CMS\Core\SingletonInterface {
 
                if (!empty($backendLayout)) {
                        /** @var $parser \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser */
-                       $parser = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TypoScript\\Parser\\TypoScriptParser');
+                       $parser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::class);
                        /** @var \TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher $conditionMatcher */
-                       $conditionMatcher = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TypoScript\\ConditionMatching\\ConditionMatcher');
+                       $conditionMatcher = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching\ConditionMatcher::class);
                        $parser->parse($parser->checkIncludeLines($backendLayout->getConfiguration()), $conditionMatcher);
 
                        $backendLayoutData = array();
index 60aced9..3eb0986 100644 (file)
@@ -58,7 +58,7 @@ class ModuleMenuView {
                $this->backPath = '';
                $this->linkModules = TRUE;
                // Loads the backend modules available for the logged in user.
-               $this->moduleLoader = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Module\\ModuleLoader');
+               $this->moduleLoader = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Module\ModuleLoader::class);
                $this->moduleLoader->observeWorkspaces = TRUE;
                $this->moduleLoader->load($GLOBALS['TBE_MODULES']);
                $this->loadedModules = $this->moduleLoader->modules;
index 93c49c7..d7a7f1e 100644 (file)
@@ -78,7 +78,7 @@ class ExtdirectPageCommands {
                        )
                );
                /** @var $tce \TYPO3\CMS\Core\DataHandling\DataHandler */
-               $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
+               $tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
                $tce->stripslashes_values = 0;
                $tce->start($action['data'], $action['cmd']);
                $tce->process_datamap();
index 0a30e08..2c9bb75 100644 (file)
@@ -1844,7 +1844,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
         */
        protected function initializeClipboard() {
                // Start clipboard
-               $this->clipboard = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Clipboard\\Clipboard');
+               $this->clipboard = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Clipboard\Clipboard::class);
 
                // Initialize - reads the clipboard content from the user session
                $this->clipboard->initializeClipboard();
index d93bef4..fa32f6a 100644 (file)
@@ -12,6 +12,6 @@
  * The TYPO3 project - inspiring people to share!
  */
 
-$editFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\EditFileController');
+$editFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\File\EditFileController::class);
 $editFileController->main();
 $editFileController->printContent();
\ No newline at end of file
index d5edb7a..ee01388 100644 (file)
@@ -12,6 +12,6 @@
  * The TYPO3 project - inspiring people to share!
  */
 
-$createFolderController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\CreateFolderController');
+$createFolderController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\File\CreateFolderController::class);
 $createFolderController->main();
 $createFolderController->printContent();
\ No newline at end of file
index 1d6881b..56dc6e7 100644 (file)
@@ -12,6 +12,6 @@
  * The TYPO3 project - inspiring people to share!
  */
 
-$renameFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\RenameFileController');
+$renameFileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\File\RenameFileController::class);
 $renameFileController->main();
 $renameFileController->printContent();
\ No newline at end of file
index 2966a55..8f5d9a3 100644 (file)
@@ -12,6 +12,6 @@
  * The TYPO3 project - inspiring people to share!
  */
 
-$fileUploadController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\FileUploadController');
+$fileUploadController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\File\FileUploadController::class);
 $fileUploadController->main();
 $fileUploadController->printContent();
\ No newline at end of file
index ed14a2e..ab42896 100644 (file)
@@ -12,6 +12,6 @@
  * The TYPO3 project - inspiring people to share!
  */
 
-$elementHistoryController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ContentElement\\ElementHistoryController');
+$elementHistoryController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::class);
 $elementHistoryController->main();
 $elementHistoryController->printContent();
\ No newline at end of file
index 2af89f1..c022eb2 100644 (file)
@@ -15,5 +15,5 @@
 /**
  * Wizard to add new records to a group/select TCEform formfield
  */
-$editController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\Wizard\\AddController');
+$editController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\Wizard\AddController::class);
 $editController->main();
index 83151f8..f89aff4 100644 (file)
@@ -15,7 +15,7 @@
 /**
  * Grid wizard
  */
-$backendLayoutWizardController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\BackendLayoutWizardController');
+$backendLayoutWizardController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\BackendLayoutWizardController::class);
 $backendLayoutWizardController->init();
 $backendLayoutWizardController->main();
 $backendLayoutWizardController->printContent();
\ No newline at end of file
index 83d8a7a..fd86237 100644 (file)
@@ -15,6 +15,6 @@
 /**
  * Wizard for choosing colors in TCEforms
  */
-$colorpickerController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\Wizard\\ColorpickerController');
+$colorpickerController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::class);
 $colorpickerController->main();
 $colorpickerController->printContent();
index e1751ff..f50a156 100644 (file)
@@ -15,5 +15,5 @@
 /**
  * Wizard to edit records from group/select lists in TCEforms
  */
-$editController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\Wizard\\EditController');
+$editController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\Wizard\EditController::class);
 $editController->main();
index 7a8343c..5b3b137 100644 (file)
@@ -15,6 +15,6 @@
 /**
  * Wizard to help make forms (fx. for tt_content elements) of type 'form'.
  */
-$formsController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\Wizard\\FormsController');
+$formsController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\Wizard\FormsController::class);
 $formsController->main();
 $formsController->printContent();
index e4314f2..085c436 100644 (file)
@@ -15,5 +15,5 @@
 /**
  * Wizard to list records from a page id.
  */
-$listController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\Wizard\\ListController');
+$listController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\Wizard\ListController::class);
 $listController->main();
index 6de1a56..9f093dd 100644 (file)
@@ -17,6 +17,6 @@
  */
 \TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords();
 
-$rteController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\Wizard\\RteController');
+$rteController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\Wizard\RteController::class);
 $rteController->main();
 $rteController->printContent();
index b4c5910..449614c 100644 (file)
@@ -16,6 +16,6 @@
  * Wizard to help make tables (eg. for tt_content elements) of type "table".
  * Each line is a table row, each cell divided by a |
  */
-$tableController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\Wizard\\TableController');
+$tableController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\Wizard\TableController::class);
 $tableController->main();
 $tableController->printContent();
index fd5de2a..d9c5781 100644 (file)
@@ -2,7 +2,7 @@
 defined('TYPO3_MODE') or die();
 
 if (TYPO3_MODE === 'BE') {
-       \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
+       \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
                'TYPO3\\CMS\\Core\\Tree\\TableConfiguration\\TableConfiguration\\DatabaseTreeDataProvider',
                \TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider::SIGNAL_PostProcessTreeData,
                'TYPO3\\CMS\\Backend\\Security\\CategoryPermissionsAspect',
index 073de5b..a1ab931 100644 (file)
@@ -105,7 +105,7 @@ class LogEntryRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
                // Check if we should get a whole tree of pages and not only a single page
                if ($constraint->getDepth() > 0) {
                        /** @var $pageTree \TYPO3\CMS\Backend\Tree\View\PageTreeView */
-                       $pageTree = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\View\\PageTreeView');
+                       $pageTree = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\View\PageTreeView::class);
                        $pageTree->init('AND ' . $GLOBALS['BE_USER']->getPagePermsClause(1));
                        $pageTree->makeHTML = 0;
                        $pageTree->fieldArray = array('uid');
index 86f7615..a0930d4 100644 (file)
@@ -61,7 +61,7 @@ class BackendLogModuleBootstrap {
                // provides a clean way to solve this.
                $_GET['tx_belog_system_beloglog']['controller'] = 'WebInfo';
                /** @var $extbaseBootstrap \TYPO3\CMS\Extbase\Core\Bootstrap */
-               $extbaseBootstrap = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Core\\Bootstrap');
+               $extbaseBootstrap = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Core\Bootstrap::class);
                return $extbaseBootstrap->run('', $configuration);
        }
 
index 6013b41..170ff6d 100644 (file)
@@ -37,7 +37,7 @@ class SwitchBackUserHook {
         */
        public function switchBack($params, AbstractUserAuthentication $authentication) {
                if ($this->isAHandledBackendSession($authentication)) {
-                       $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
+                       $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
                        $backendUserSessionRepository = $objectManager->get('TYPO3\\CMS\\Beuser\\Domain\\Repository\\BackendUserSessionRepository');
                        $backendUserSessionRepository->switchBackToOriginalUser($authentication);
                        \TYPO3\CMS\Core\Utility\HttpUtility::redirect($GLOBALS['BACK_PATH'] . 'backend.php');
index 5817bfa..93e5015 100644 (file)
@@ -107,7 +107,7 @@ class ext_posMap extends \TYPO3\CMS\Backend\Tree\View\PagePositionMap {
 
 require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('backend') . 'Classes/Controller/PageLayoutController.php';
 // Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\PageLayoutController');
+$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\PageLayoutController::class);
 $SOBE->init();
 // Include files?
 foreach ($SOBE->include_once as $INC_FILE) {
index 1bdef1d..dc3be40 100644 (file)
@@ -72,7 +72,7 @@ class ext_posMap extends \TYPO3\CMS\Backend\Tree\View\PagePositionMap {
 
 require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('backend') . 'Classes/Controller/ContentElement/NewContentElementController.php';
 // Make instance:
-$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ContentElement\\NewContentElementController');
+$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController::class);
 $SOBE->init();
 // Include files?
 foreach ($SOBE->include_once as $INC_FILE) {
index c0069c1..d46dd71 100644 (file)
@@ -1310,7 +1310,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                        $this->userTS_text = implode(LF . '[GLOBAL]' . LF, $this->TSdataArray);
                        if (!$this->userTS_dontGetCached) {
                                // Perform TS-Config parsing with condition matching
-                               $parseObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TsConfigParser');
+                               $parseObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Configuration\TsConfigParser::class);
                                $res = $parseObj->parseTSconfig($this->userTS_text, 'userTS');
                                if ($res) {
                                        $this->userTS = $res['TSconfig'];
@@ -1323,7 +1323,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                                if (is_array($cachedContent) && !$this->userTS_dontGetCached) {
                                        $this->userTS = $cachedContent;
                                } else {
-                                       $parseObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TypoScript\\Parser\\TypoScriptParser');
+                                       $parseObj = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::class);
                                        $parseObj->parse($this->userTS_text);
                                        $this->userTS = $parseObj->setup;
                                        BackendUtility::storeHash($hash, $this->userTS, 'BE_USER_TSconfig');
@@ -1479,7 +1479,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
        protected function initializeFileStorages() {
                $this->fileStorages = array();
                /** @var $storageRepository \TYPO3\CMS\Core\Resource\StorageRepository */
-               $storageRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\StorageRepository');
+               $storageRepository = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\StorageRepository::class);
                // Admin users have all file storages visible, without any filters
                if ($this->isAdmin()) {
                        $storageObjects = $storageRepository->findAll();
@@ -2198,7 +2198,7 @@ This is a dump of the failures:
                                }
                                $from = \TYPO3\CMS\Core\Utility\MailUtility::getSystemFrom();
                                /** @var $mail \TYPO3\CMS\Core\Mail\MailMessage */
-                               $mail = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Mail\\MailMessage');
+                               $mail = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Mail\MailMessage::class);
                                $mail->setTo($email)->setFrom($from)->setSubject($subject)->setBody($email_body);
                                $mail->send();
                                // Logout written to log
@@ -2418,7 +2418,7 @@ This is a dump of the failures:
                                if ($warn) {
                                        $from = \TYPO3\CMS\Core\Utility\MailUtility::getSystemFrom();
                                        /** @var $mail \TYPO3\CMS\Core\Mail\MailMessage */
-                                       $mail = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Mail\\MailMessage');
+                                       $mail = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Mail\MailMessage::class);
                                        $mail->setTo($GLOBALS['TYPO3_CONF_VARS']['BE']['warning_email_addr'])->setFrom($from)->setSubject($prefix . ' ' . $subject)->setBody($msg);
                                        $mail->send();
                                }
@@ -2427,7 +2427,7 @@ This is a dump of the failures:
                        if ($this->uc['emailMeAtLogin'] && strstr($this->user['email'], '@')) {
                                $from = \TYPO3\CMS\Core\Utility\MailUtility::getSystemFrom();
                                /** @var $mail \TYPO3\CMS\Core\Mail\MailMessage */
-                               $mail = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Mail\\MailMessage');
+                               $mail = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Mail\MailMessage::class);
                                $mail->setTo($this->user['email'])->setFrom($from)->setSubject($subject)->setBody($msg);
                                $mail->send();
                        }
index f91955c..88350ef 100644 (file)
@@ -252,7 +252,7 @@ class FileBackend extends \TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend implem
                $entryIdentifiers = array();
                $now = $GLOBALS['EXEC_TIME'];
                $cacheEntryFileExtensionLength = strlen($this->cacheEntryFileExtension);
-               for ($directoryIterator = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('DirectoryIterator', $this->cacheDirectory); $directoryIterator->valid(); $directoryIterator->next()) {
+               for ($directoryIterator = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\DirectoryIterator::class, $this->cacheDirectory); $directoryIterator->valid(); $directoryIterator->next()) {
                        if ($directoryIterator->isDot()) {
                                continue;
                        }