Feature #36337

Allow "configurable" classes path in packages

Added by Karsten Dambekalns over 3 years ago. Updated over 3 years ago.

Status:Resolved Start date:2012-04-19
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Core
Target version:TYPO3 Flow Base Distribution - 1.1
PHP Version: Complexity:
Has patch:No

Description

Currently, the class loader expects to find classes inside "Classes" of each package. While this is fine for FLOW3 packages, it blocks (easy) use of other PSR-0 compatible packages - the code always has to be moved into "Classes". To make use of 3rd party code easier, e.g. by using Composer, we need to be able to specify a mapping of package keys to entry points for the class loader.

This change c/should remove the .Shortcuts folder again and could also make "overlapping" package keys possible (e.g. TYPO3.JobQueue and TYPO3.JobQueue.Beanstalk).

Associated revisions

Revision 83a56d56
Added by Karsten Dambekalns over 3 years ago

[FEATURE] Allow "configurable" classes path in packages

Package instances can be asked for their classes path, which is now set
determined by the PackageManager and stored in PackageStates.php.

It can - in the future - thus be read from a Composer file and
does no longer have to be the hardcoded "Classes".

This change removes the use of the .Shortcuts folder again and makes
"overlapping" package keys possible (e.g. TYPO3.JobQueue and
TYPO3.JobQueue.Beanstalk).

Change-Id: If6f84402f03ead963b1eed557a1cf92a44a76dc5
Resolves: #36337
Releases: 1.1

History

#1 Updated by Gerrit Code Review over 3 years ago

  • Status changed from Accepted to Under Review

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

#2 Updated by Gerrit Code Review over 3 years ago

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

#3 Updated by Gerrit Code Review over 3 years ago

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

#4 Updated by Gerrit Code Review over 3 years ago

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

#5 Updated by Karsten Dambekalns over 3 years ago

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

Also available in: Atom PDF