[!!!][TASK] Remove classFile option in makeInstanceService 44/32944/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 23 Sep 2014 18:01:50 +0000 (20:01 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 24 Sep 2014 17:20:08 +0000 (19:20 +0200)
Resolves: #61821
Releases: master
Change-Id: I5b9426f003c762f1f152545eac43c8a095e73b92
Reviewed-on: http://review.typo3.org/32944
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-61821-ClassFileOptionInMakeInstanceServiceRemoved.rst [new file with mode: 0644]

index bafbe37..400f0bd 100644 (file)
@@ -4602,20 +4602,6 @@ Connection: close
                                $GLOBALS['T3_VAR']['makeInstanceService'][$info['className']]->reset();
                                return $GLOBALS['T3_VAR']['makeInstanceService'][$info['className']];
                        } else {
-                               if (isset($info['classFile'])) {
-                                       // @deprecated since 6.1, will be removed in TYPO3 CMS 6.3
-                                       // Option is deprecated, since we now have the autoloader function
-                                       self::deprecationLog(
-                                               'The option "classFile" of "' . $info['className'] .
-                                               '" in T3_SERVICES has been deprecated, as this should now be done by the respective ' .
-                                               'ext_autoload.php of each extension. This option will be removed in TYPO3 CMS v6.3.'
-                                       );
-                                       $requireFile = self::getFileAbsFileName($info['classFile']);
-                                       if (@is_file($requireFile)) {
-                                               self::requireOnce($requireFile);
-                                       }
-                               }
-
                                $obj = self::makeInstance($info['className']);
                                if (is_object($obj)) {
                                        if (!@is_callable(array($obj, 'init'))) {
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-61821-ClassFileOptionInMakeInstanceServiceRemoved.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-61821-ClassFileOptionInMakeInstanceServiceRemoved.rst
new file mode 100644 (file)
index 0000000..0ddf952
--- /dev/null
@@ -0,0 +1,27 @@
+==================================================================
+Breaking: #61821 - classFile option in makeInstanceService removed
+==================================================================
+
+Description
+===========
+
+The option "classFile" in \TYPO3\CMS\Core\Utility\GeneralUtility\makeInstanceService is removed.
+This should now be done by the respective ext_autoload.php of each extension.
+
+
+Impact
+======
+
+Extension classes relying on the "classFile" registration for autoloading will not be loaded anymore.
+
+
+Affected installations
+======================
+
+A TYPO3 instance is affected if a 3rd party extension uses the removed class loading registration method.
+
+
+Migration
+=========
+
+Use the ext_autoload.php file to autoload the class.
\ No newline at end of file