Project

General

Profile

Actions

Task #43269

closed

Change Xclass naming from ux_ prefix to Xclass suffix

Added by Christian Kuhn over 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Miscellaneous
Target version:
Start date:
2012-11-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
medium
Sprint Focus:

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #43290: In case of an early call to makeInstance the object configuration might not be setClosed2012-11-25

Actions
Actions #1

Updated by Christian Kuhn over 11 years ago

With 6.0 a new Xclass registration scheme was put in place removing
the global TYPO3_CONF_VARS['XCLASS'] registration and using the
autoloader instead.
Currently, an Xclass is registered by prefixing the class that has
to be Xclass'ed with the prefix 'ux_'. An example is 'ux_TYPO3\CMS\
Core\Database\DatabaseConnection' in dbal.
This looks ugly and doesn't really make much sense with namespaces.
Therefore, a late change is introduced, changing the 'ux_' prefix to
a 'Xclass' suffix.

With this patch, a Xclass registration in an
ext_autoload.php file of some extension must look like:

  • Name spaced:
    'Original\Classname' => 'Other\ClassnameXclass'
  • Non name spaced:
    'tx_FooBar_Classname' => 'tx_FooBar_ClassnameXclass'

The patch does the needed adjustments in ClassLoader and
makeInstance. Additionally, two unit tests for the ClassLoader are
removed that duplicated other tests and did not make sense.

Actions #2

Updated by Gerrit Code Review over 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16712

Actions #3

Updated by Gerrit Code Review over 11 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16713

Actions #4

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16713

Actions #5

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16712

Actions #6

Updated by Gerrit Code Review over 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16712

Actions #7

Updated by Gerrit Code Review over 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16713

Actions #8

Updated by Gerrit Code Review over 11 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16712

Actions #9

Updated by Gerrit Code Review over 11 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16713

Actions #10

Updated by Gerrit Code Review over 11 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16712

Actions #11

Updated by Gerrit Code Review over 11 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16712

Actions #12

Updated by Gerrit Code Review over 11 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16713

Actions #13

Updated by Helmut Hummel over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF