Bug #43541
Incomplete classes path detection for PSR-0
| Status: | New | Start date: | 2012-12-03 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assigned To: | - | % Done: | 0% |
|
| Category: | Core | |||
| Target version: | TYPO3 Flow Base Distribution - 2.0.1 | |||
| PHP Version: | Complexity: | |||
| Has patch: | No | Affected Flow version: | Git master |
Description
For the guzzle/guzzle package (as an example that uncovered this), our autoloading fails.
First symptom is the error Cannot redeclare class Zend_Log in …/Libraries/guzzle/guzzle/tests/Guzzle/Tests/Log/Zend_Log.php on line 30 which cannot be resolved using object.excludeClasses configuration. Indeed the PackageStates.php contains:
'guzzle.guzzle' =>
array (
'manifestPath' => '',
'state' => 'active',
'packagePath' => 'Libraries/guzzle/guzzle/',
'classesPath' => 'tests/',
),
Note the classesPath entry… this is probably caused by this part of Guzzle's composer manifest:
"autoload": {
"psr-0": {
"Guzzle\\Tests": "tests/",
"Guzzle": "src/"
}
},
Related issues
History
#1 Updated by Karsten Dambekalns over 2 years ago
- Target version set to 2.0
#2 Updated by Karsten Dambekalns over 2 years ago
See https://review.typo3.org/16681 for a change (slightly) related to this.
#3 Updated by Karsten Dambekalns over 2 years ago
- Affected Flow version changed from Git 1.2 (master) to Git master
#4 Updated by Karsten Dambekalns almost 2 years ago
- Target version changed from 2.0 to 2.0.1