From be3d473aeb85f315699ef6eb5deda84a94daa5cd Mon Sep 17 00:00:00 2001 From: Benni Mack <benni@typo3.org> Date: Thu, 15 Jun 2017 18:29:19 +0200 Subject: [PATCH] [TASK] Remove unused Extbase exception classes There are a lot PHP exception classes which are not in use inside Extbase. Some come from the fact that Fluid got more mature and standalone, some from refactorings within ObjectManager, PropertyManager, RequestHash and Persistence. One highlight is the InvalidMarkerException which dates back to the backport of Flow before Fluid was invented and Flow was using the same marker-based approach as TYPO3 v4 had - and was never used in TYPO3 v4 at all. Class aliases are in place for all of them, so no breaking change. Resolves: #81600 Releases: master Change-Id: Ic1c3fc309954750f8c2e664ab94fa0e6f9336bea Reviewed-on: https://review.typo3.org/53224 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Susanne Moog <susanne.moog@typo3.org> Tested-by: Susanne Moog <susanne.moog@typo3.org> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> --- ...recation-81600-UnusedExtbaseExceptions.rst | 92 ++++++++++++ .../Exception/ContainerIsLockedException.php | 22 --- .../Exception/NoSuchFileException.php | 22 --- .../Exception/NoSuchOptionException.php | 22 --- .../InvalidCommandIdentifierException.php | 22 --- .../Mvc/Exception/InvalidMarkerException.php | 22 --- .../InvalidOrNoRequestHashException.php | 22 --- .../Exception/InvalidRequestTypeException.php | 22 --- .../InvalidTemplateResourceException.php | 22 --- .../Exception/InvalidUriPatternException.php | 22 --- .../Exception/InvalidViewHelperException.php | 22 --- .../RequiredArgumentMissingException.php | 22 --- .../CannotInitializeCacheException.php | 22 --- .../TooManyRecursionLevelsException.php | 22 --- .../Object/Exception/WrongScopeException.php | 22 --- .../Classes/Object/InvalidClassException.php | 22 --- .../InvalidObjectConfigurationException.php | 22 --- .../Classes/Object/InvalidObjectException.php | 22 --- .../ObjectAlreadyRegisteredException.php | 22 --- .../Classes/Object/UnknownClassException.php | 22 --- .../Object/UnknownInterfaceException.php | 22 --- .../UnresolvedDependenciesException.php | 22 --- .../CleanStateNotMemorizedException.php | 22 --- .../InvalidPropertyTypeException.php | 22 --- .../Exception/MissingBackendException.php | 22 --- .../Exception/FormatNotSupportedException.php | 31 ----- .../Exception/InvalidFormatException.php | 31 ----- .../Exception/InvalidPropertyException.php | 31 ----- .../InvalidPropertyTypeException.php | 24 ---- ...umentForRequestHashGenerationException.php | 22 --- ...SyntacticallyWrongRequestHashException.php | 22 --- .../Exception/InvalidSubjectException.php | 22 --- .../Exception/NoValidatorFoundException.php | 22 --- .../extbase/Migrations/Code/ClassAliasMap.php | 54 +++++++- .../Migrations/Code/LegacyClassesForIde.php | 131 ++++++++++++++++++ 35 files changed, 276 insertions(+), 734 deletions(-) create mode 100644 typo3/sysext/core/Documentation/Changelog/master/Deprecation-81600-UnusedExtbaseExceptions.rst delete mode 100644 typo3/sysext/extbase/Classes/Configuration/Exception/ContainerIsLockedException.php delete mode 100644 typo3/sysext/extbase/Classes/Configuration/Exception/NoSuchFileException.php delete mode 100644 typo3/sysext/extbase/Classes/Configuration/Exception/NoSuchOptionException.php delete mode 100644 typo3/sysext/extbase/Classes/Mvc/Exception/InvalidCommandIdentifierException.php delete mode 100644 typo3/sysext/extbase/Classes/Mvc/Exception/InvalidMarkerException.php delete mode 100644 typo3/sysext/extbase/Classes/Mvc/Exception/InvalidOrNoRequestHashException.php delete mode 100644 typo3/sysext/extbase/Classes/Mvc/Exception/InvalidRequestTypeException.php delete mode 100644 typo3/sysext/extbase/Classes/Mvc/Exception/InvalidTemplateResourceException.php delete mode 100644 typo3/sysext/extbase/Classes/Mvc/Exception/InvalidUriPatternException.php delete mode 100644 typo3/sysext/extbase/Classes/Mvc/Exception/InvalidViewHelperException.php delete mode 100644 typo3/sysext/extbase/Classes/Mvc/Exception/RequiredArgumentMissingException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/Container/Exception/CannotInitializeCacheException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/Container/Exception/TooManyRecursionLevelsException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/Exception/WrongScopeException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/InvalidClassException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/InvalidObjectConfigurationException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/InvalidObjectException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/ObjectAlreadyRegisteredException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/UnknownClassException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/UnknownInterfaceException.php delete mode 100644 typo3/sysext/extbase/Classes/Object/UnresolvedDependenciesException.php delete mode 100644 typo3/sysext/extbase/Classes/Persistence/Generic/Exception/CleanStateNotMemorizedException.php delete mode 100644 typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidPropertyTypeException.php delete mode 100644 typo3/sysext/extbase/Classes/Persistence/Generic/Exception/MissingBackendException.php delete mode 100644 typo3/sysext/extbase/Classes/Property/Exception/FormatNotSupportedException.php delete mode 100644 typo3/sysext/extbase/Classes/Property/Exception/InvalidFormatException.php delete mode 100644 typo3/sysext/extbase/Classes/Property/Exception/InvalidPropertyException.php delete mode 100644 typo3/sysext/extbase/Classes/Reflection/Exception/InvalidPropertyTypeException.php delete mode 100644 typo3/sysext/extbase/Classes/Security/Exception/InvalidArgumentForRequestHashGenerationException.php delete mode 100644 typo3/sysext/extbase/Classes/Security/Exception/SyntacticallyWrongRequestHashException.php delete mode 100644 typo3/sysext/extbase/Classes/Validation/Exception/InvalidSubjectException.php delete mode 100644 typo3/sysext/extbase/Classes/Validation/Exception/NoValidatorFoundException.php create mode 100644 typo3/sysext/extbase/Migrations/Code/LegacyClassesForIde.php diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-81600-UnusedExtbaseExceptions.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-81600-UnusedExtbaseExceptions.rst new file mode 100644 index 000000000000..74b9ed7a6595 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-81600-UnusedExtbaseExceptions.rst @@ -0,0 +1,92 @@ +.. include:: ../../Includes.txt + +=============================================== +Deprecation: #81600 - Unused Extbase Exceptions +=============================================== + +See :issue:`81600` + +Description +=========== + +Extbase ships with a lot of PHP Exception classes which are not used (partially anymore) due to +refactorings or backports 8 years ago - they are never thrown within TYPO3 / Extbase itself. + +These PHP classes have been removed. + + +Impact +====== + +Using these exception classes will not work anymore in TYPO3 v10. + + +Affected Installations +====================== + +Any TYPO3 extbase extension using these extraordinary exceptions in their own code. + + +Migration +========= + +PHP class aliases are in place, so all code will still work throughout TYPO3 v9, but extension authors +should migrate to other exceptions. + +Use TYPO3\CMS\Extbase\Configuration\Exception instead of +* TYPO3\CMS\Extbase\Configuration\Exception\ContainerIsLockedException +* TYPO3\CMS\Extbase\Configuration\Exception\NoSuchFileException +* TYPO3\CMS\Extbase\Configuration\Exception\NoSuchOptionException + +Use TYPO3\CMS\Extbase\Exception instead of +* TYPO3\CMS\Extbase\Mvc\Exception\InvalidMarkerException +* TYPO3\CMS\Extbase\Mvc\Exception\InvalidViewHelperException + +Use TYPO3\CMS\Extbase\Mvc\Exception instead of +* TYPO3\CMS\Extbase\Mvc\Exception\InvalidRequestTypeException +* TYPO3\CMS\Extbase\Mvc\Exception\RequiredArgumentMissingException +* TYPO3\CMS\Extbase\Mvc\Exception\InvalidCommandIdentifierException + +Use TYPO3\CMS\Core\Cache\Exception\InvalidCacheException instead of +* TYPO3\CMS\Extbase\Object\Container\Exception\CannotInitializeCacheException + +Use TYPO3\CMS\Extbase\Object\Exception instead of +* TYPO3\CMS\Extbase\Object\Container\Exception\TooManyRecursionLevelsException +* TYPO3\CMS\Extbase\Object\Exception\WrongScopeException +* TYPO3\CMS\Extbase\Object\InvalidClassException +* TYPO3\CMS\Extbase\Object\InvalidObjectConfigurationException +* TYPO3\CMS\Extbase\Object\InvalidObjectException +* TYPO3\CMS\Extbase\Object\ObjectAlreadyRegisteredException +* TYPO3\CMS\Extbase\Object\UnknownClassException +* TYPO3\CMS\Extbase\Object\UnknownInterfaceException +* TYPO3\CMS\Extbase\Object\UnresolvedDependenciesException + +Use TYPO3\CMS\Extbase\Persistence\Generic\Exception instead of +* TYPO3\CMS\Extbase\Persistence\Generic\Exception\CleanStateNotMemorizedException +* TYPO3\CMS\Extbase\Persistence\Generic\Exception\InvalidPropertyTypeException +* TYPO3\CMS\Extbase\Persistence\Generic\Exception\MissingBackendException + +Use TYPO3\CMS\Extbase\Property\Exception instead of +* TYPO3\CMS\Extbase\Property\Exception\FormatNotSupportedException +* TYPO3\CMS\Extbase\Property\Exception\InvalidFormatException +* TYPO3\CMS\Extbase\Property\Exception\InvalidPropertyException + +Use TYPO3\CMS\Extbase\Reflection\Exception instead of +* TYPO3\CMS\Extbase\Reflection\Exception\InvalidPropertyTypeException + +Use TYPO3\CMS\Extbase\Security\Exception instead of +* TYPO3\CMS\Extbase\Security\Exception\InvalidArgumentForRequestHashGenerationException +* TYPO3\CMS\Extbase\Security\Exception\SyntacticallyWrongRequestHashException +* TYPO3\CMS\Extbase\Mvc\Exception\InvalidUriPatternException + +Use TYPO3\CMS\Extbase\Security\Exception\InvalidHashException instead of +* TYPO3\CMS\Extbase\Mvc\Exception\InvalidOrNoRequestHashException + +Use TYPO3\CMS\Extbase\Validation\Exception instead of +* TYPO3\CMS\Extbase\Validation\Exception\InvalidSubjectException +* TYPO3\CMS\Extbase\Validation\Exception\NoValidatorFoundException + +Use TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException instead of +* TYPO3\CMS\Extbase\Mvc\Exception\InvalidTemplateResourceException + +.. index:: PHP-API \ No newline at end of file diff --git a/typo3/sysext/extbase/Classes/Configuration/Exception/ContainerIsLockedException.php b/typo3/sysext/extbase/Classes/Configuration/Exception/ContainerIsLockedException.php deleted file mode 100644 index 189bb0aaec00..000000000000 --- a/typo3/sysext/extbase/Classes/Configuration/Exception/ContainerIsLockedException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Configuration\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * A Container Is Locked exception - */ -class ContainerIsLockedException extends \TYPO3\CMS\Extbase\Configuration\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Configuration/Exception/NoSuchFileException.php b/typo3/sysext/extbase/Classes/Configuration/Exception/NoSuchFileException.php deleted file mode 100644 index c59d93cdc3dd..000000000000 --- a/typo3/sysext/extbase/Classes/Configuration/Exception/NoSuchFileException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Configuration\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * A No Such File exception - */ -class NoSuchFileException extends \TYPO3\CMS\Extbase\Configuration\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Configuration/Exception/NoSuchOptionException.php b/typo3/sysext/extbase/Classes/Configuration/Exception/NoSuchOptionException.php deleted file mode 100644 index 5c9088fc3580..000000000000 --- a/typo3/sysext/extbase/Classes/Configuration/Exception/NoSuchOptionException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Configuration\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * A No Such Option exception - */ -class NoSuchOptionException extends \TYPO3\CMS\Extbase\Configuration\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidCommandIdentifierException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidCommandIdentifierException.php deleted file mode 100644 index 2ca223562d46..000000000000 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidCommandIdentifierException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Mvc\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid Command Identifier" exception - */ -class InvalidCommandIdentifierException extends \TYPO3\CMS\Extbase\Mvc\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidMarkerException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidMarkerException.php deleted file mode 100644 index c3c7016a2a2a..000000000000 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidMarkerException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Mvc\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid Marker" exception - */ -class InvalidMarkerException extends \TYPO3\CMS\Extbase\Mvc\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidOrNoRequestHashException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidOrNoRequestHashException.php deleted file mode 100644 index 11c123a4e19e..000000000000 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidOrNoRequestHashException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Mvc\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid Request Method" exception - */ -class InvalidOrNoRequestHashException extends \TYPO3\CMS\Extbase\Mvc\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidRequestTypeException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidRequestTypeException.php deleted file mode 100644 index bebcb9dab052..000000000000 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidRequestTypeException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Mvc\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid Request Type" exception - */ -class InvalidRequestTypeException extends \TYPO3\CMS\Extbase\Mvc\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidTemplateResourceException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidTemplateResourceException.php deleted file mode 100644 index 5ab0f15eebb0..000000000000 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidTemplateResourceException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Mvc\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid Template Resource" exception - */ -class InvalidTemplateResourceException extends \TYPO3\CMS\Extbase\Mvc\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidUriPatternException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidUriPatternException.php deleted file mode 100644 index f3a630b6ce87..000000000000 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidUriPatternException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Mvc\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid URI Pattern" exception - */ -class InvalidUriPatternException extends \TYPO3\CMS\Extbase\Mvc\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidViewHelperException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidViewHelperException.php deleted file mode 100644 index 26fe5e5666ee..000000000000 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidViewHelperException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Mvc\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "invalid ViewHelper" exception - */ -class InvalidViewHelperException extends \TYPO3\CMS\Extbase\Mvc\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/RequiredArgumentMissingException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/RequiredArgumentMissingException.php deleted file mode 100644 index 2bcdd1c12016..000000000000 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/RequiredArgumentMissingException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Mvc\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Required Argument Missing" exception - */ -class RequiredArgumentMissingException extends \TYPO3\CMS\Extbase\Mvc\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/Container/Exception/CannotInitializeCacheException.php b/typo3/sysext/extbase/Classes/Object/Container/Exception/CannotInitializeCacheException.php deleted file mode 100644 index 2a64448c4670..000000000000 --- a/typo3/sysext/extbase/Classes/Object/Container/Exception/CannotInitializeCacheException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object\Container\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * Exception thrown if cache cannot be built. - */ -class CannotInitializeCacheException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/Container/Exception/TooManyRecursionLevelsException.php b/typo3/sysext/extbase/Classes/Object/Container/Exception/TooManyRecursionLevelsException.php deleted file mode 100644 index 58e8821efb98..000000000000 --- a/typo3/sysext/extbase/Classes/Object/Container/Exception/TooManyRecursionLevelsException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object\Container\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * Exception thrown if cache cannot be built. - */ -class TooManyRecursionLevelsException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/Exception/WrongScopeException.php b/typo3/sysext/extbase/Classes/Object/Exception/WrongScopeException.php deleted file mode 100644 index e39bb80ed78c..000000000000 --- a/typo3/sysext/extbase/Classes/Object/Exception/WrongScopeException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * "Wrong Scope" Exception - */ -class WrongScopeException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/InvalidClassException.php b/typo3/sysext/extbase/Classes/Object/InvalidClassException.php deleted file mode 100644 index 14237fad0436..000000000000 --- a/typo3/sysext/extbase/Classes/Object/InvalidClassException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * "Invalid class" Exception - */ -class InvalidClassException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/InvalidObjectConfigurationException.php b/typo3/sysext/extbase/Classes/Object/InvalidObjectConfigurationException.php deleted file mode 100644 index 10c640bcda3e..000000000000 --- a/typo3/sysext/extbase/Classes/Object/InvalidObjectConfigurationException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * "Invalid Object Configuration" Exception - */ -class InvalidObjectConfigurationException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/InvalidObjectException.php b/typo3/sysext/extbase/Classes/Object/InvalidObjectException.php deleted file mode 100644 index ec40e672e092..000000000000 --- a/typo3/sysext/extbase/Classes/Object/InvalidObjectException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * "Invalid object" Exception - */ -class InvalidObjectException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/ObjectAlreadyRegisteredException.php b/typo3/sysext/extbase/Classes/Object/ObjectAlreadyRegisteredException.php deleted file mode 100644 index 5e251e44b913..000000000000 --- a/typo3/sysext/extbase/Classes/Object/ObjectAlreadyRegisteredException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * "Object already registered" Exception - */ -class ObjectAlreadyRegisteredException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/UnknownClassException.php b/typo3/sysext/extbase/Classes/Object/UnknownClassException.php deleted file mode 100644 index a955f030764a..000000000000 --- a/typo3/sysext/extbase/Classes/Object/UnknownClassException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * "Unknown Class" Exception - */ -class UnknownClassException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/UnknownInterfaceException.php b/typo3/sysext/extbase/Classes/Object/UnknownInterfaceException.php deleted file mode 100644 index 8ecfdc8f9851..000000000000 --- a/typo3/sysext/extbase/Classes/Object/UnknownInterfaceException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * "Unknown Interface" Exception - */ -class UnknownInterfaceException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Object/UnresolvedDependenciesException.php b/typo3/sysext/extbase/Classes/Object/UnresolvedDependenciesException.php deleted file mode 100644 index b6716d29c27b..000000000000 --- a/typo3/sysext/extbase/Classes/Object/UnresolvedDependenciesException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Object; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * "Unresolved Dependencies" Exception - */ -class UnresolvedDependenciesException extends \TYPO3\CMS\Extbase\Object\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/CleanStateNotMemorizedException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/CleanStateNotMemorizedException.php deleted file mode 100644 index a222fcb50fa4..000000000000 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/CleanStateNotMemorizedException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Persistence\Generic\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid Class" exception - */ -class CleanStateNotMemorizedException extends \TYPO3\CMS\Extbase\Persistence\Generic\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidPropertyTypeException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidPropertyTypeException.php deleted file mode 100644 index cfd2e02830d9..000000000000 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidPropertyTypeException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Persistence\Generic\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid Property Type" exception - */ -class InvalidPropertyTypeException extends \TYPO3\CMS\Extbase\Persistence\Generic\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/MissingBackendException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/MissingBackendException.php deleted file mode 100644 index a10e1e82b8aa..000000000000 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/MissingBackendException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Persistence\Generic\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * A "Missing Backend" exception - */ -class MissingBackendException extends \TYPO3\CMS\Extbase\Persistence\Generic\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/FormatNotSupportedException.php b/typo3/sysext/extbase/Classes/Property/Exception/FormatNotSupportedException.php deleted file mode 100644 index 589eafac294f..000000000000 --- a/typo3/sysext/extbase/Classes/Property/Exception/FormatNotSupportedException.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Property\Exception; - -/* * - * This script belongs to the Extbase framework * - * * - * It is free software; you can redistribute it and/or modify it under * - * the terms of the GNU Lesser General Public License as published by the * - * Free Software Foundation, either version 3 of the License, or (at your * - * option) any later version. * - * * - * This script is distributed in the hope that it will be useful, but * - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * - * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * - * General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with the script. * - * If not, see http://www.gnu.org/licenses/lgpl.html * - * * - * The TYPO3 project - inspiring people to share! * - * */ -/** - * An "Format not supported" Exception - * - * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later - * @api - */ -class FormatNotSupportedException extends \TYPO3\CMS\Extbase\Property\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/InvalidFormatException.php b/typo3/sysext/extbase/Classes/Property/Exception/InvalidFormatException.php deleted file mode 100644 index 59344c29b007..000000000000 --- a/typo3/sysext/extbase/Classes/Property/Exception/InvalidFormatException.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Property\Exception; - -/* * - * This script belongs to the Extbase framework * - * * - * It is free software; you can redistribute it and/or modify it under * - * the terms of the GNU Lesser General Public License as published by the * - * Free Software Foundation, either version 3 of the License, or (at your * - * option) any later version. * - * * - * This script is distributed in the hope that it will be useful, but * - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * - * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * - * General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with the script. * - * If not, see http://www.gnu.org/licenses/lgpl.html * - * * - * The TYPO3 project - inspiring people to share! * - * */ -/** - * An "Invalid Format" Exception - * - * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later - * @api - */ -class InvalidFormatException extends \TYPO3\CMS\Extbase\Property\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/InvalidPropertyException.php b/typo3/sysext/extbase/Classes/Property/Exception/InvalidPropertyException.php deleted file mode 100644 index 903c1c7ea983..000000000000 --- a/typo3/sysext/extbase/Classes/Property/Exception/InvalidPropertyException.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Property\Exception; - -/* * - * This script belongs to the Extbase framework * - * * - * It is free software; you can redistribute it and/or modify it under * - * the terms of the GNU Lesser General Public License as published by the * - * Free Software Foundation, either version 3 of the License, or (at your * - * option) any later version. * - * * - * This script is distributed in the hope that it will be useful, but * - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * - * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * - * General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with the script. * - * If not, see http://www.gnu.org/licenses/lgpl.html * - * * - * The TYPO3 project - inspiring people to share! * - * */ -/** - * An "Invalid Property" Exception - * - * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later - * @api - */ -class InvalidPropertyException extends \TYPO3\CMS\Extbase\Property\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Reflection/Exception/InvalidPropertyTypeException.php b/typo3/sysext/extbase/Classes/Reflection/Exception/InvalidPropertyTypeException.php deleted file mode 100644 index 54d0d181728c..000000000000 --- a/typo3/sysext/extbase/Classes/Reflection/Exception/InvalidPropertyTypeException.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Reflection\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid Property Type" exception - * - * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later - */ -class InvalidPropertyTypeException extends \TYPO3\CMS\Extbase\Reflection\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Security/Exception/InvalidArgumentForRequestHashGenerationException.php b/typo3/sysext/extbase/Classes/Security/Exception/InvalidArgumentForRequestHashGenerationException.php deleted file mode 100644 index e8711fcfcf69..000000000000 --- a/typo3/sysext/extbase/Classes/Security/Exception/InvalidArgumentForRequestHashGenerationException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Security\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "InvalidArgumentForRequestHashGeneration" exception - */ -class InvalidArgumentForRequestHashGenerationException extends \TYPO3\CMS\Extbase\Security\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Security/Exception/SyntacticallyWrongRequestHashException.php b/typo3/sysext/extbase/Classes/Security/Exception/SyntacticallyWrongRequestHashException.php deleted file mode 100644 index a6d9aac8088a..000000000000 --- a/typo3/sysext/extbase/Classes/Security/Exception/SyntacticallyWrongRequestHashException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Security\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "SyntacticallyWrongRequestHash" exception - */ -class SyntacticallyWrongRequestHashException extends \TYPO3\CMS\Extbase\Security\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Validation/Exception/InvalidSubjectException.php b/typo3/sysext/extbase/Classes/Validation/Exception/InvalidSubjectException.php deleted file mode 100644 index 979eae2453b2..000000000000 --- a/typo3/sysext/extbase/Classes/Validation/Exception/InvalidSubjectException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Validation\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * An "Invalid Subject" Exception - */ -class InvalidSubjectException extends \TYPO3\CMS\Extbase\Validation\Exception -{ -} diff --git a/typo3/sysext/extbase/Classes/Validation/Exception/NoValidatorFoundException.php b/typo3/sysext/extbase/Classes/Validation/Exception/NoValidatorFoundException.php deleted file mode 100644 index a6744e4a7fd0..000000000000 --- a/typo3/sysext/extbase/Classes/Validation/Exception/NoValidatorFoundException.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -namespace TYPO3\CMS\Extbase\Validation\Exception; - -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ - -/** - * A "NoValidatorFound" Exception - */ -class NoValidatorFoundException extends \TYPO3\CMS\Extbase\Validation\Exception -{ -} diff --git a/typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php b/typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php index ef8a64ebfddb..92e353eb485e 100644 --- a/typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php +++ b/typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php @@ -1,4 +1,56 @@ <?php return [ - 'TYPO3\\CMS\\Extbase\\Service\\TypoScriptService' => \TYPO3\CMS\Core\TypoScript\TypoScriptService::class + // Configuration + 'TYPO3\\CMS\\Extbase\\Configuration\\Exception\\ContainerIsLockedException' => \TYPO3\CMS\Extbase\Configuration\Exception::class, + 'TYPO3\\CMS\\Extbase\\Configuration\\Exception\\NoSuchFileException' => \TYPO3\CMS\Extbase\Configuration\Exception::class, + 'TYPO3\\CMS\\Extbase\\Configuration\\Exception\\NoSuchOptionException' => \TYPO3\CMS\Extbase\Configuration\Exception::class, + + // no proper fallback + 'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidMarkerException' => \TYPO3\CMS\Extbase\Exception::class, + + 'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidRequestTypeException' => \TYPO3\CMS\Extbase\Mvc\Exception::class, + 'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\RequiredArgumentMissingException' => \TYPO3\CMS\Extbase\Mvc\Exception::class, + 'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidCommandIdentifierException' => \TYPO3\CMS\Extbase\Mvc\Exception::class, + + 'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidOrNoRequestHashException' => \TYPO3\CMS\Extbase\Security\Exception\InvalidHashException::class, + 'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidUriPatternException' => \TYPO3\CMS\Extbase\Security\Exception::class, + + // Object Container + 'TYPO3\\CMS\\Extbase\\Object\\Container\\Exception\\CannotInitializeCacheException' => \TYPO3\CMS\Core\Cache\Exception\InvalidCacheException::class, + 'TYPO3\\CMS\\Extbase\\Object\\Container\\Exception\\TooManyRecursionLevelsException' => \TYPO3\CMS\Extbase\Object\Exception::class, + + // ObjectManager + 'TYPO3\\CMS\\Extbase\\Object\\Exception\WrongScopeException' => \TYPO3\CMS\Extbase\Object\Exception::class, + 'TYPO3\\CMS\\Extbase\\Object\\InvalidClassException' => \TYPO3\CMS\Extbase\Object\Exception::class, + 'TYPO3\\CMS\\Extbase\\Object\\InvalidObjectConfigurationException' => \TYPO3\CMS\Extbase\Object\Exception::class, + 'TYPO3\\CMS\\Extbase\\Object\\InvalidObjectException' => \TYPO3\CMS\Extbase\Object\Exception::class, + 'TYPO3\\CMS\\Extbase\\Object\\ObjectAlreadyRegisteredException' => \TYPO3\CMS\Extbase\Object\Exception::class, + 'TYPO3\\CMS\\Extbase\\Object\\UnknownClassException' => \TYPO3\CMS\Extbase\Object\Exception::class, + 'TYPO3\\CMS\\Extbase\\Object\\UnknownInterfaceException' => \TYPO3\CMS\Extbase\Object\Exception::class, + 'TYPO3\\CMS\\Extbase\\Object\\UnresolvedDependenciesException' => \TYPO3\CMS\Extbase\Object\Exception::class, + + // Persistence + 'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Exception\\CleanStateNotMemorizedException' => \TYPO3\CMS\Extbase\Persistence\Generic\Exception::class, + 'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Exception\\InvalidPropertyTypeException' => \TYPO3\CMS\Extbase\Persistence\Generic\Exception::class, + 'TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Exception\\MissingBackendException' => \TYPO3\CMS\Extbase\Persistence\Generic\Exception::class, + + // Property + 'TYPO3\\CMS\\Extbase\\Property\\Exception\\FormatNotSupportedException' => \TYPO3\CMS\Extbase\Property\Exception::class, + 'TYPO3\\CMS\\Extbase\\Property\\Exception\\InvalidFormatException' => \TYPO3\CMS\Extbase\Property\Exception::class, + 'TYPO3\\CMS\\Extbase\\Property\\Exception\\InvalidPropertyException' => \TYPO3\CMS\Extbase\Property\Exception::class, + + // Reflection + 'TYPO3\\CMS\\Extbase\\Reflection\\Exception\\InvalidPropertyTypeException' => \TYPO3\CMS\Extbase\Reflection\Exception::class, + + // Security + 'TYPO3\\CMS\\Extbase\\Security\\Exception\\InvalidArgumentForRequestHashGenerationException' => \TYPO3\CMS\Extbase\Security\Exception::class, + 'TYPO3\\CMS\\Extbase\\Security\\Exception\\SyntacticallyWrongRequestHashException' => \TYPO3\CMS\Extbase\Security\Exception::class, + + // Validation + 'TYPO3\\CMS\\Extbase\\Validation\\Exception\\InvalidSubjectException' => \TYPO3\CMS\Extbase\Validation\Exception::class, + 'TYPO3\\CMS\\Extbase\\Validation\\Exception\\NoValidatorFoundException' => \TYPO3\CMS\Extbase\Validation\Exception::class, + + // Fluid + 'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidViewHelperException' => \TYPO3\CMS\Extbase\Exception::class, + 'TYPO3\\CMS\\Extbase\\Mvc\\Exception\\InvalidTemplateResourceException' => \TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException::class ]; diff --git a/typo3/sysext/extbase/Migrations/Code/LegacyClassesForIde.php b/typo3/sysext/extbase/Migrations/Code/LegacyClassesForIde.php new file mode 100644 index 000000000000..4cda7ceaffbf --- /dev/null +++ b/typo3/sysext/extbase/Migrations/Code/LegacyClassesForIde.php @@ -0,0 +1,131 @@ +<?php +namespace { + die('Access denied'); +} + +// Configuration +namespace TYPO3\CMS\Extbase\Configuration\Exception { + class ContainerIsLockedException extends \TYPO3\CMS\Extbase\Configuration\Exception + { + } + class NoSuchFileException extends \TYPO3\CMS\Extbase\Configuration\Exception + { + } + class NoSuchOptionException extends \TYPO3\CMS\Extbase\Configuration\Exception + { + } +} + +namespace TYPO3\CMS\Extbase\Mvc\Exception { + class InvalidMarkerException extends \TYPO3\CMS\Extbase\Exception + { + } + class RequiredArgumentMissingException extends \TYPO3\CMS\Extbase\Mvc\Exception + { + } + class InvalidRequestTypeException extends \TYPO3\CMS\Extbase\Mvc\Exception + { + } + class InvalidCommandIdentifierException extends \TYPO3\CMS\Extbase\Mvc\Exception + { + } + class InvalidOrNoRequestHashException extends \TYPO3\CMS\Extbase\Security\Exception\InvalidHashException + { + } + class InvalidUriPatternException extends \TYPO3\CMS\Extbase\Security\Exception + { + } + class InvalidViewHelperException extends \TYPO3\CMS\Extbase\Exception + { + } + class InvalidTemplateResourceException extends \TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException + { + } +} + +namespace TYPO3\CMS\Extbase\Object\Container\Exception { + class CannotInitializeCacheException extends \TYPO3\CMS\Core\Cache\Exception\InvalidCacheException + { + } + class TooManyRecursionLevelsException extends \TYPO3\CMS\Extbase\Object\Exception + { + } +} + +namespace TYPO3\CMS\Extbase\Object\Exception { + class WrongScopeException extends \TYPO3\CMS\Extbase\Object\Exception + { + } +} + +namespace TYPO3\CMS\Extbase\Object { + class InvalidClassException extends \TYPO3\CMS\Extbase\Object\Exception + { + } + class InvalidObjectConfigurationException extends \TYPO3\CMS\Extbase\Object\Exception + { + } + class InvalidObjectException extends \TYPO3\CMS\Extbase\Object\Exception + { + } + class ObjectAlreadyRegisteredException extends \TYPO3\CMS\Extbase\Object\Exception + { + } + class UnknownClassException extends \TYPO3\CMS\Extbase\Object\Exception + { + } + class UnknownInterfaceException extends \TYPO3\CMS\Extbase\Object\Exception + { + } + class UnresolvedDependenciesException extends \TYPO3\CMS\Extbase\Object\Exception + { + } +} + +namespace TYPO3\CMS\Extbase\Persistence\Generic\Exception { + class CleanStateNotMemorizedException extends \TYPO3\CMS\Extbase\Persistence\Generic\Exception + { + } + class InvalidPropertyTypeException extends \TYPO3\CMS\Extbase\Persistence\Generic\Exception + { + } + class MissingBackendException extends \TYPO3\CMS\Extbase\Persistence\Generic\Exception + { + } +} + +namespace TYPO3\CMS\Extbase\Property\Exception { + class FormatNotSupportedException extends \TYPO3\CMS\Extbase\Property\Exception + { + } + class InvalidFormatException extends \TYPO3\CMS\Extbase\Property\Exception + { + } + class InvalidPropertyException extends \TYPO3\CMS\Extbase\Property\Exception + { + } +} + +namespace TYPO3\CMS\Extbase\Reflection\Exception { + class InvalidPropertyTypeException extends \TYPO3\CMS\Extbase\Reflection\Exception + { + } +} + +namespace TYPO3\CMS\Extbase\Security\Exception { + class InvalidArgumentForRequestHashGenerationException extends \TYPO3\CMS\Extbase\Security\Exception + { + } + class SyntacticallyWrongRequestHashException extends \TYPO3\CMS\Extbase\Security\Exception + { + } +} + +namespace TYPO3\CMS\Extbase\Validation\Exception { + class InvalidSubjectException extends \TYPO3\CMS\Extbase\Validation\Exception + { + } + class NoValidatorFoundException extends \TYPO3\CMS\Extbase\Validation\Exception + { + } +} -- GitLab