Feature #42961
Support non PSR-0 packages
Status: | Resolved | Start date: | 2012-10-12 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | Package | |||
Target version: | TYPO3 Flow Base Distribution - 2.x | |||
PHP Version: | Complexity: | |||
Has patch: | No |
Description
Composers autoloader supports non PSR-0 packages if they follow the so called "PEAR-style" (see http://getcomposer.org/doc/04-schema.md#psr-0).
A lot of packages on packagist.org still don't follow the PSR-0 standard. The only way to get those working with Flow, is to include the composer autoloader manually. I did this by adding following line to the Package.php of my distributions main package:
1require \TYPO3\Flow\Utility\Files::concatenatePaths(array(FLOW_PATH_PACKAGES, 'Libraries/autoload.php'));
But obviously this is just a hacky work around with unpredictable side effects
Related issues
Associated revisions
[TASK] ClassLoader compatible with all composer packages
The ClassLoader understands all composer autoload types (PSR-0
autoloading, PSR-4 autoloading, classmap generation and files includes)
and additionally has a faster resolution logic.
For additional speed, e.g. in Production context, you can run::
composer install -o
to let composer generate optimized autoloading maps.
Change-Id: Ib7ff6f4f73f323ce9fc71627c84bf96ef077557e
Releases: 2.0, 2.1, master
Resolves: #42961
History
#1 Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27384
#2 Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27384
#3 Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27384
#4 Updated by Gerrit Code Review over 1 year ago
Patch set 4 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27384
#5 Updated by Gerrit Code Review over 1 year ago
Patch set 5 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27384
#6 Updated by Gerrit Code Review over 1 year ago
Patch set 6 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27384
#7 Updated by Gerrit Code Review over 1 year ago
Patch set 7 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27384
#8 Updated by Gerrit Code Review over 1 year ago
Patch set 8 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27384
#9 Updated by Gerrit Code Review over 1 year ago
Patch set 9 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27384
#10 Updated by Gerrit Code Review over 1 year ago
Patch set 1 for branch 2.1 of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27434
#11 Updated by Gerrit Code Review over 1 year ago
Patch set 1 for branch 2.0 of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27436
#12 Updated by Christian Müller over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d36117c47bdbe37f3089323f799ac5add7bfcec7.
#13 Updated by Gerrit Code Review over 1 year ago
- Status changed from Resolved to Under Review
Patch set 2 for branch 2.0 of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/27436
#14 Updated by Christian Müller over 1 year ago
- Status changed from Under Review to Resolved
- Target version set to 2.x